Guest practice: this set is not saved and does not count.
What does this log?
let a = 5; let b = a; b = 10; const x = { n: 5 }; const y = x; y.n = 10; console.log(a, x.n);
let name = "ava"; name = name.toUpperCase(); const word = "hi"; word.color = "red"; console.log(name, word.color);
console.log(typeof null, typeof NaN, typeof [], typeof function () {});
console.log(undefined + 1, null + 1, JSON.stringify({ a: undefined, b: null }));
function greet(name = "friend") { return "Hi, " + name; } console.log(greet(), greet(undefined), greet(null));
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers