Javascript Assignment
Javascript Assignment
Java: It is a language used for developing the Desktop software, android apps,
designing the Server-side applications. It supports the OOPs concept with the
Classes and objects
2. What are Data Types in JavaScript?
A) There are two types of data types in JavaScript.
a) primitive data types: Numbers, String, Boolean, Null, Undefined
b) Complex type: Complex
3. What is the use of the isNaN function?
A) NAN stands for the Not a Number. It means the while performing a
mathematical function on the non-numeric Values or When encountering
undefined or infinite results.
For Example: Arithmetic operation with non-numeric values, Division by Zero,
Parsing Invalid Numbers
4. Which is faster in JavaScript and ASP script?
A) JavaScript is generally faster than VBScript due to JIT compilation, browser
optimization, and language features. However, performance can vary depending
on server configuration, code quality, and task complexity. For modern, high-
performance server-side scripting, consider Node.js.
5. Is it possible to break JavaScript Code into several lines?
A) Yes, it possible to break JavaScript Code into several lines. By Using
Semicolon, Using Parentheses, Using Curly Braces, Using Automates Semicolon
Insertion (ASI)