Displaying an object in Javascript with the for loop
An object in Javascript is an entity with properties. Objects in javascript are represented in braces and have a key with a value. In the following example we show a javascript object. First we show it with the for loop, traversing the object through its x, y, and z keys or IDs. We can also show the object directly with the name obj followed by a dot and the key