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.
Hey Everyone,
I am new to programming. I approached this kata in javascript with aim to practive object oriented programming and ES6 classes. I spent some time on this kata and I was supper proud with what I came up with. Unfortunatelly my solution did not pass the tests. The one thing I was missing / doing different than the solutins I found here, was to set the direction property on the Array object through the dot notation in stead of the Object.defineProperty method. I played around with both approaches and whenever logging my object to the console I saw the same things in both cases. Could someone explain why this assigning the dir property through the dot notation fails this kata tests? What is the difference when I use the Object.defineProperty function simply specyfing the value in the descriptor?
Your help would be very much appreciated :D