JavaScript Basics MCQ

Test your JavaScript knowledge with this interactive MCQ quiz.

Question 1

What is the correct way to declare a variable in JavaScript?

Question 2

What will be the output of console.log(typeof undefined)?

Question 3

Which method is used to add elements at the end of an array?

Question 4

What is the result of '5' + 3 in JavaScript?

Question 5

Which keyword is used to define an async function?