It seems like you are using an ad blocker. To enhance your experience and support our website, please consider:

  1. Signing in to disable ads on our site.
  2. Sign up if you don't have an account yet.
  3. Or, disable your ad blocker by doing this:
    • Click on the ad blocker icon in your browser's toolbar.
    • Select "Pause on this site" or a similar option for lancecourse.com.

JavaScript Fundamentals

A quiz to test your knowledge of JavaScript basics.

Question 1

What does the fetch() function do in JavaScript?

Question 2

What is the purpose of the document.getElementById() method?

Question 3

Which of the following is a way to include JavaScript in an HTML document?

Question 4

What is the keyword used to declare a variable that cannot be reassigned?

Question 5

What will the following code output? console.log(typeof "Hello");

Question 6

Which of the following is NOT a JavaScript data type?

Question 7

What does HTML stand for?

Question 8

Which symbol is used to comment out a single line in JavaScript?

Question 9

Which of the following keywords is used to declare a variable that can be reassigned?

Question 10

Which data type is used to represent true or false values in JavaScript?