Quiz

In this lesson, we will solve a quiz related to the concepts covered in the previous lesson.

1

What is the correct output of this code:

const name = "myname";
const person = {
  [name]:"Alberto",
};
console.log(person.myname);
A)

name

B)

“name”

C)

“Alberto”

D)

myname

Question 1 of 20 attempted

Get hands-on with 1200+ tech skills courses.