Loading...
Quiz JavaScript Basics
Practice the basics of JavaScript with the quiz that covers JavaScript Tags, JavaScript Comments, JavaScript Variables, JavaScript Let and const.
1.
What does the following JavaScript code do?
javascript
1 lines
|15/ 500 tokens
1document.getElementById("demo").innerHTML = "Hello World!";
Code Tools
2.
Where is it recommended to place the <script> tag in an HTML document for optimal page loading?
3.
What will be the result of the following code?
javascript
2 lines
|9/ 500 tokens
1 2const name = "Alice"; name = "Bob";
Code Tools
4.
How do you write a multi-line comment in JavaScript?