Quiz · Objects · lesson 2 of 13
Quiz — dot and brackets
What does the program print?
const key = "a";
const o = { a: 1, key: 2 };
console.log(o.key, o[key]);Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.