Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Good question
Yeah, that's pretty much the gist of it. If you want a much more detailed dive, check out this link (just read the "Contents" section linked, the rest of that page is pretty unrelated to the question):
https://github.com/getify/You-Dont-Know-JS/blob/master/this%20%26%20object%20prototypes/ch3.md#contents
Thanks! This really helps!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Just so I understand clearly, " var opposite " is an object with attributes 'NORTH', 'EAST', 'SOUTH' and 'WEST', each have the respective opposite as a value. Thus, when " opposite[dir] " is called, it's kinda like saying " opposite.'NORTH' "?