1. Inside which HTML element do we put the JavaScript?
2. What is the correct place to insert a JavaScript?
Correct Answer is : Both the section and the section
3. How you can create a function in JavaScript?
Correct Answer is : function myFunction()
4. How you can add comment in JavaScript?
Correct Answer is : //comment
5. How you can declare array in JavaScript?
Correct Answer is : var size = [ "round", "rectangle", "square"]
6. External scripts can’t take the tag _________
7. Arrays in JavaScript are written within ____________
8. For displaying data in JavaScript, we can’t use ____________
Correct Answer is : document.getElementById()
9. For testing we should use ________
Correct Answer is : document.write()
10. Which of the following keyword stops the execution of JavaScript?
Correct Answer is : debugger
11. typeof “null” in JavaScript is _______
Correct Answer is : object
12. Negative positions for string do not work in ______________
Correct Answer is : Internet Explorer 8
13. For converting string to array we can use ______________ method.
Correct Answer is : split()
14. JavaScript numbers are stored as ______________
Correct Answer is : double precision floating point
15. Which is not a JavaScript global function?
Correct Answer is : compile()
16. The integers in JavaScript are precise up to ___________
Correct Answer is : 15 digits
17. Typeof “infinity” will return ___________
Correct Answer is : number
18. By default JavaScript displays the numbers as ___________
Correct Answer is : base 10
19. Which method is not used for converting variables to number?
Correct Answer is : valueOf()
20. Which method is not used for converting variables to number?
Correct Answer is : valueOf()