JavaScript Beginner Practice
82 questions covering 22 JavaScript topics.
Quick Quiz
1. Who created JavaScript?
2. JavaScript is standardized as?
3. Which engine is used in Google Chrome?
4. Which HTML tag is used to include JavaScript?
5. Which shortcut opens Developer Tools in Chrome (Windows)?
6. Which method is recommended for real-world projects?
7. Which keyword should be preferred by default?
8. Which keyword is block scoped?
9. Which symbol is used for a single-line comment?
10. Which syntax is used for multi-line comments?
11. Comments are...
12. Which of the following is NOT a primitive data type?
13. What is the output of typeof null?
14. Which data type is used to store very large integers?
15. Which function converts a value to a number?
16. What is the output of Boolean("")?
17. Which operator checks both value and data type?
18. What does this code log?
console.log([] + []);
console.log([] + {});
console.log(1 + "1");19. Which operator compares both value and type?
20. What is the output of 10 % 3?
21. What is the output of "5" + 2?
22. Which statement executes code when a condition is true?
23. Which keyword is used to check multiple conditions?
24. Which statement is best for comparing one variable against multiple fixed values?
25. Which loop is commonly used when the number of iterations is known?
26. Which loop is best for iterating over arrays?
27. Which statement skips the current iteration?
28. Which index represents the first element of an array?
29. Which method adds an element to the end of an array?
30. Which property returns the total number of elements?
31. Which keyword is used to declare a function?
32. Which statement sends a value back from a function?
33. Which syntax represents an arrow function?
34. How are object properties stored?
35. Which notation is useful for dynamic property names?
36. Which method returns all property names?
37. Which keyword creates a block-scoped variable?
38. Which keyword is NOT block scoped?
39. Which scope allows inner functions to access parent variables?
40. Which keyword is initialized as undefined during hoisting?
41. Which variables remain in the Temporal Dead Zone?
42. Which function type can be called before its declaration?
43. What does this code log?
console.log(a);
var a = 5;44. What does this code log?
console.log(b);
let b = 10;