JavaScript Fundamentals

Check your understanding of JavaScript basics like variables,functions,and scope.

1. Which keyword declares a block-scoped variable that can be reassigned in JavaScript?
2. Which of the following are considered truthy values in JavaScript (select all that apply)?
3. JavaScript is a statically typed language.
4. What does 'ES' stand for in ES6 (ECMAScript 6)?
5. Which of the following is NOT a primitive data type in JavaScript?
6. Which array methods mutate the original array (select all that apply)?
7. The 'this' keyword in a global function (non-strict mode) refers to the window object in browsers.
8. What operator checks both value and type equality without coercion?
9. Which of the following is fully hoisted in JavaScript?
10. Which array methods return a new array without mutating the original (select all that apply)?
11. typeof null returns 'null' in JavaScript.
12. What is the result of: 3 + '3'?
13. Which data type is returned by the typeof operator for an array?
14. Which are primitive data types in JavaScript (select all that apply)?
15. Variables declared with var are block-scoped.
16. What method adds elements to the end of an array and returns the new length?
17. What is the value of an undeclared variable in JavaScript?
18. Which are valid loop structures in JavaScript (select all that apply)?
19. In JavaScript, objects are passed by reference.
20. What keyword exits a function and returns a value?
Answered 0 of 0 — 0 correct