START LEARNING
#1. What is the correct syntax for referring to an external JavaScript file?
#2. Where is the correct place to insert JavaScript in an HTML document?
#3. How do you write a single-line comment in JavaScript?
#4. Which keyword is used to declare a variable in JavaScript?
#5. What is the output of console.log(typeof null)?
#6. How do you call a function named myFunction in JavaScript?
#7. What does NaN represent in JavaScript?
#8. Which operator is used to compare both value and type in JavaScript?
#9. How can you add a comment that spans multiple lines in JavaScript?
#10. What is the default value of an uninitialized variable in JavaScript?
#11. What will the code console.log(“5” + 5) output?
#12. What is the purpose of Array.isArray() method?
#13. What does the this keyword refer to in JavaScript?
#14. Which function is used to parse a string to an integer in JavaScript?
#15. What is the result of 2 + “2” in JavaScript?
#16. How do you declare a constant in JavaScript?
#17. What does == compare in JavaScript?
#18. How do you create an array in JavaScript?
#19. What does the push() method do in an array?
#20. Which of the following is not a JavaScript framework?
#21. What is the output of console.log(1 == “1”)?
#22. What is the output of console.log(1 === “1”)?
#23. How do you convert a string to a number in JavaScript?
#24. What does typeof [] return in JavaScript?
#25. Which method is used to remove the last element from an array?
#26. What is the purpose of the splice() method in JavaScript?
#27. Which keyword is used to check for a specific condition in JavaScript?
#28. What will the code console.log(typeof undefined) return?
#29. How can you get the length of a string in JavaScript?
#30. What is the output of console.log([] + {}) in JavaScript?
#31. What is the scope of a variable declared with let?
#32. What will console.log(0.1 + 0.2 === 0.3) return?
#33. How do you write an arrow function in JavaScript?
#34. Which method is used to join two or more arrays in JavaScript?
#35. How do you define a default parameter in JavaScript?
#36. What is the difference between null and undefined in JavaScript?
#37. How do you check if a value is NaN?
#38. Which loop is guaranteed to execute at least once?
#39. How do you create a new object in JavaScript?
#40. How do you access an object’s property using a variable?
Previous
Finish
For More Information Visit : – India gk
Contact for website Design and development – Chaturbhuja Sons