1. What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.
2. Which operator is used to assign a value to a variable?
3. Is JavaScript case-sensitive?
4. What will the following code return: Boolean(10>9)
5. How do you declare a JavaScript variable?
6. Which event occurs when the user clicks on an HTML element?
7. What is the correct JavaScript syntax for opening a new window called "w2" ?
8. What is the correct way to write a JavaScript array?
9. How can you add a comment in a JavaScript?
10. How does a FOR loop start?
11. How does a WHILE loop start?
12. How to write an IF statement for executing some code if "i" is NOT equal to 5?
13. How to write an IF statement in JavaScript?
14. How do you call a function named "myFunction"?
15. How do you write "Hello World" in an alert box?
16. The external JavaScript file must contain the script tag.
17. What is the correct syntax for referring to an external script called "xxx.js"?
18. Where is the correct place to insert a JavaScript?
19. Inside which HTML element do we put the JavaScript?
20. Which one is a Javascript DATA type:
Leave a Reply