// Practice Set · JS Objects · guest

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

Question 1 of 5 from: Object Path

What does this log?

console.log(typeof [], typeof function () {}, typeof "hi");
Question 2 of 5 from: Object Intro

What happens when this runs?

const user = { name: "Ada" };
user.age = 36;
user = { name: "Alan" };
console.log(user.name);
Question 3 of 5 from: Object Methods

An arrow function is a good choice for a method that needs to read the object's own properties with this.

Question 4 of 5 from: Object Display

"User: " + {a: 1} gives "User: [object Object]", but console.log("User:", {a: 1}) shows the object's contents.

Question 5 of 5 from: Object Constructors

What does this log?

function Student(name) {
  this.name = name;
}
const oops = Student("Dee");
console.log(oops);
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.