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
document.getElementById("demo").innerHTML = "Hello World!";
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
1 2
const name = "Alice"; name = "Bob";
4.
How do you write a multi-line comment in JavaScript?