Loading
Current section: 1. Objects 7 exercises
Problem

Dynamic Keys

Loading exercise

Transcript

00:00 Sometimes the properties that you have in your objects are not valid property names for, like, syntactically for an object literal. And you can absolutely use brackets, like create the object then use bracket system syntax to assign each one. But the object literal is quite nice. So we're gonna use bracket syntax for the, when we're creating the object in the first place as well. So in this exercise step, you're just going to, create an object called error pages, to have an object that has keys that are not syntactically allowed to just be, written out literally, but you can use brackets to solve that.

00:36 So jump into this. We'll see you when you're done.