JavaScript Basics Test

Test your understanding of JavaScript values, variables, arrays, comparisons and JSON.

6 questions. Choose the best answer for each question, then review every explanation.

Question 1 of 6

1 of 6
Question 1Which comparison checks both value and type?
Question 2Where is a variable declared with let available?
if (true) {
    let message = 'Hello';
}
Question 3What does Array.prototype.map() return?
Question 4What is the result of typeof null?
typeof null
Question 5What does const prevent?
Question 6Which method converts a JSON string into a JavaScript value?