Prabhas has Published 74 Articles

What are syntax errors in JavaScript?

Prabhas

Prabhas

Updated on 16-Jan-2020 08:44:48

293 Views

Syntax errors also called parsing errors, occur at compile time in traditional programming languages and at interpret time in JavaScript. For example, the following line causes a syntax error because it is missing a closing parenthesis.     When a syntax error occurs in JavaScript, only the code contained within ... Read More

How to create JavaScript alert with 3 buttons (Yes, No and Cancel)?

Prabhas

Prabhas

Updated on 10-Jan-2020 10:30:53

4K+ Views

The standard JavaScript alert box won’t work if you want to customize it. For that, we have a custom alert box, which we’re creating using jQuery and styled with CSS.ExampleYou can try to run the following code to create an alert box with 3 buttons i.e Yes, No and Cancel. ... Read More

How to set cookies to expire in 30 minutes in JavaScript?

Prabhas

Prabhas

Updated on 09-Jan-2020 08:07:48

7K+ Views

You can extend the life of a cookie beyond the current browser session by setting an expiration date and saving the expiry date within the cookie. This can be done by setting the ‘expires’ attribute to a date and time.ExampleYou can try to run the following example to set cookies ... Read More

How can I trigger a JavaScript click event?

Prabhas

Prabhas

Updated on 03-Oct-2019 07:46:57

2K+ Views

To trigger a JavaScript click event, let us see the example of mouse hover.ExampleLive Demo           Hover over the button.                                      function display() {             document.getElementById("test").click();          }          

Why is case sensitivity so much more important in JavaScript?

Prabhas

Prabhas

Updated on 30-Sep-2019 07:41:32

129 Views

A script is in plain text and not just markup like HTML, which is case insensitive. In JavaScript, the while keyword, should be "while", not "While" or "WHILE". Case sensitivity is important since it is closely related to HTML, but some methods and events are mentioned differently.Some tags and attributes ... Read More

What are the various types of comments in JavaScript?

Prabhas

Prabhas

Updated on 12-Sep-2019 08:20:29

171 Views

Single Line commentThe following is a single line comment in JavaScript. Any text between a // and the end of a line is treated as a comment and is ignored by JavaScript.// This is a comment. It is similar to comments in C++Multi-Line commentThe following is a multi-line comment in ... Read More

Make your collections thread-safe in C#

Prabhas

Prabhas

Updated on 30-Jul-2019 22:30:23

396 Views

The .NET Framework 4 brought the System.Collections.Concurrent namespace. This has several collection classes that are thread-safe and scalable. These collections are called concurrent collections because they can be accessed by multiple threads at a time. The following concurrent collection types use lightweight synchronization mechanisms: SpinLock, SpinWait, etc. These are new ... Read More

What are native methods in Java and where should we use them?

Prabhas

Prabhas

Updated on 30-Jul-2019 22:30:21

487 Views

Native methods are written in a different language than java and are declared as native in Java.

What is the difference between Object oriented programming and Object based programming?

Prabhas

Prabhas

Updated on 30-Jul-2019 22:30:20

20K+ Views

Many of us have a misconception that Java script is an object oriented language. But, the truth is Java Script is an Object Based Language. Object Based languages are different from Object Oriented Languages: Object Based Languages Object based languages supports the usage of object and encapsulation. They does ... Read More

How to pass import parameter values using SAP RFC class?

Prabhas

Prabhas

Updated on 30-Jul-2019 22:30:20

520 Views

Check the below link to know detail about SAPRFC class. https://github.com/sensational/php-saprfc/tree/php7https://github.com/piersharding/php-sapnwrfc

Advertisements