0% found this document useful (0 votes)
2 views3 pages

Javascript Assignment

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
2 views3 pages

Javascript Assignment

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 3

JAVASCRIPT ASSIGNMENT

1. What are the differences between Java and JavaScript?


A) JavaScript: It is a language used for client supporting to create an interactive web
page. And it supports the OOPS concept, functional programing and Multi
paradigm

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)

6. What are undeclared and undefined variables?


A) Undeclared variables: these are the variables which are not been declared using
the Var, Let, or Const keywords. When trying to access the we get runtime error.
Undefined Variables: these are the variables has been declared
7. What do you mean by NULL in JavaScript?
8. What is a prompt box?
9. What is the ‘this’ keyword in JavaScript?
10. What is the difference between View State and Session State?
11. How to submit a form using JavaScript?
12. What is called Variable typing in JavaScript?
13. How to convert the string of any base to integer in JavaScript?
14. Explain how to detect the operating system on the client machine?
15. What are the types of Pop-up boxes available in JavaScript?
16. What is the difference between an alert box and a confirmation box?
17. What is the use of void (0)?
18. What is the difference between call () and apply () methods?
19. Write the errors shown in JavaScript?
20. What is the difference between JavaScript and Jscript?
21. Why do we use the word “debugger” in javascript?
22. Difference between var and let keyword in JavaScript.
23. Explain Implicit Type Coercion in JavaScript.
24. Is JavaScript a statically typed or a dynamically typed language?
25. Mention some advantages of JavaScript.
26. What do you mean by BOM?
27. What is the distinction between client-side and server-side JavaScript?
28. What do you mean by Self Invoking Functions?
29. Explain call(), apply() and, bind() methods.
30. What are the features of JavaScript?
31. What are some of the built-in methods in JavaScript?
32. What is Callback in JavaScript?
33. What are the ways of adding JavaScript code in an HTML file?
34. What do you understand about cookies?
35. What is hoisting in JavaScript?

You might also like