Home > Internet Programming > Quizzes > JavaScript Fundamentals Test
JavaScript Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 17% Most missed: “Which fact is true about the keyword 'default'?”
JavaScript Fundamentals Test
Time left 00:00
25 Questions

1. null === undefined
2. If a function doesn't explicitly use the 'return' operator - what will the return value be when the function is invoked?
3. Which of the following variable types does not exist in JavaScript?
4. Which of these descriptors applies to JavaScript?
5. . What will we see in the console after the following code run: var a = 'Bolt'; function f() { if (!a) { var a = 'Nut'; } console.log(a); } f(); console.log(a);,(option)'Bolt' and 'Bolt',(option)'Nut' and 'Nut',(rightanswer)'Nut' then 'Bolt',(option)'Bolt' then 'Nut'
6. What is the difference between == and === ?
7. Which of these is not a JavaScript statement?
8. Which of the following primitive values exist in JavaScript?
9. Which of the following declares a variable with a value of string type?
10. What is the value of x.length after running this code? x = ['foo']; x.quux = 'Hello'; x[1] = 'bar';
11. Which of the following is NOT a valid way to write a loop that will iterate over the values in the array in variable 'myArray'?
12. When reserved words are used as keys in object literals they must be ______?
13. What does '2' + 3 + 4 evaluate to?
14. JavaScript is ...
15. Which of the following is the syntax for an object literal (with no properties)?
16. Mathematical expression - '10' - (12+5).toString() - evaluates to what?
17. What is the right way to combine two arrays into a new array? var a = ['a' - 'b' - 'c']; var b = ['d' - 'e' - 'f'];
18. What is the value of x? var a = 'A'; var x = a.concat('B');
19. String concatenation...
20. What does the following expression return? 1 + 5 + ' bottles of milk';
21. Where do you use the 'break' statement?
22. Which of the following asserts that the variables `A` - `B` - and `C` have unequal values?
23. A javascript variable prefixed with a $ is:
24. var a = new Boolean(false); What is (typeof a)?
25. What is the result of the following statement: typeof 'x';