Ad
  • Custom User Avatar

    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