All quizzesEasy
Output Basics — Series 3
Preview — 3 of 10 questions
What is logged?
javascript
console.log(null + 1, undefined + 1, null == 0, null >= 0);A1 1 true true
BNaN NaN false false
C1 NaN true true
D1 NaN false true
What is logged?
javascript
console.log(typeof function () {}, typeof Symbol(), typeof 10n, typeof null);Afunction symbol bigint object
Bobject symbol number object
Cfunction symbol bigint null
Dfunction object bigint object
What is logged?
javascript
const o = {};
o[1] = 'a';
o['1'] = 'b';
o[true] = 'c';
console.log(o[1], Object.keys(o).length);Aa 3
Ba 2
Cb 2
Db 3
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.