// 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 Path

A method is a property whose value is a function.

Question 3 of 5 from: Object Properties

Setting a property to undefined (pet.color = undefined) removes the key, exactly like delete pet.color.

Question 4 of 5 from: Object Methods

What does this log?

const account = {
  balance: 100,
  deposit(amount) {
    this.balance += amount;
    return this.balance;
  }
};
account.deposit(50);
console.log(account.deposit(25));
Question 5 of 5 from: Object this

What does this log?

const dog = {
  name: "Rex",
  speak() {
    return this.name;
  }
};
const fn = dog.speak.bind({ name: "Max" });
console.log(fn(), dog.speak());
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.