All quizzesEasy
Core Concepts — Series 3
Preview — 3 of 10 questions
What is logged?
javascript
const str = "abc";
str[0] = "z";
console.log(str);A"zbc"
B"abc"
Cundefined
DTypeError: Cannot assign to read only property '0'
What does the following code log?
javascript
const arr = [1, 2, 3];
arr[5] = 99;
console.log(arr.length);A4
B3
C6
D5
What is logged?
javascript
const price = 9.5;
const qty = 3;
console.log(`Total: ${price * qty} EUR`);ATotal: 28.5 EUR
BTotal: 9.53 EUR
CTotal: ${price * qty} EUR
DTotal: NaN EUR
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.