// Practice Set · JS Data Types · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS Data Types

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);
Question 2 of 5 from: JS Primitive Data

What does this log?

let name = "ava";
name = name.toUpperCase();
const word = "hi";
word.color = "red";
console.log(name, word.color);
Question 3 of 5 from: JS typeof

What does this log?

console.log(typeof null, typeof NaN, typeof [], typeof function () {});
Question 4 of 5 from: JS undefined

What does this log?

console.log(undefined + 1, null + 1, JSON.stringify({ a: undefined, b: null }));
Question 5 of 5 from: JS undefined

What does this log?

function greet(name = "friend") {
  return "Hi, " + name;
}
console.log(greet(), greet(undefined), greet(null));
Ready to submit?

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.