JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers. JavaScript is also an Object based Programming language
Enumerate the differences between Java and JavaScript?
Java is a complete programming language. In contrast, JavaScript is a coded program that can be introduced to HTML pages. These two languages are not at all inter-dependent and are designed for the different intent. Java is an object - oriented programming (OOPS) or structured programming language like C++ or C whereas JavaScript is a client-side scripting language.
What are JavaScript Data Types?
Following are the JavaScript Data types:
Number
String
Boolean
Object
Undefined
What is the use of isNaN function?
isNan function returns true if the argument is not a number otherwise it is false.
Between JavaScript and an ASP script, which is faster?
JavaScript is faster. JavaScript is a client-side language and thus it does not need the assistance of the web server to execute. On the other hand, ASP is a server-side language and hence is always slower than JavaScript. Javascript now is also a server side language (nodejs).
What is negative infinity?
Negative Infinity is a number in JavaScript which can be derived by dividing negative number by zero.
Which company developed JavaScript?
Netscape is the software company that developed JavaScript.
What is 'this' keyword in JavaScript?
'This' keyword refers to the object from where it was called.
What is === operator?
=== is called a strict equality operator, which returns true when the two operands have the same value without conversion.
Does JavaScript support automatic type conversion?
Yes, JavaScript does support automatic type conversion. It is the common way of type conversion used by JavaScript developers
What is called Variable typing in Javascript?
Variable typing is used to assign a number to a variable. The same variable can be assigned to a string.
What would be the result of 3+2+"7"?
Since 3 and 2 are integers, they will be added numerically. And since 7 is a string, its concatenation will be done. So the result would be 57.