I'm still a beginner and know a lot about functions, objects, etc., But this gave a lot of confusion as to what the class was, static, etc. It definitely should not be on 8 kuy.
Or someone could just briefly explain what these things are. ( static, class )
Just wanted to konw, here they want to use make function right? Then why the 'class' and 'static'! I mean what are those? I have seen some of them in Java but in Js? really?
The code in the rightmost brackets gets executed first, converting the input string to uppercase.
Then, this value is passed into the leftmost pair of brackets (through the use of an es6 arrow function), and compared against the reversed string.
Very enjoyable kata! If you have problems passing all the tests, be very careful of the order in which you are checking for rolls that exceed 100 and if the player lands on a snake/ladder square.
I don't get why this is the best. They just changed words into char. Making the code harder to understand. Right?
I'm still a beginner and know a lot about functions, objects, etc., But this gave a lot of confusion as to what the class was, static, etc. It definitely should not be on 8 kuy.
Or someone could just briefly explain what these things are. ( static, class )
Just wanted to konw, here they want to use make function right? Then why the 'class' and 'static'! I mean what are those? I have seen some of them in Java but in Js? really?
The code in the rightmost brackets gets executed first, converting the input string to uppercase.
Then, this value is passed into the leftmost pair of brackets (through the use of an es6 arrow function), and compared against the reversed string.
What is '.toUpperCase() doing here? ( I know what it does but why are we using it here?)
This has been fixed, it caught me out!
Very enjoyable kata! If you have problems passing all the tests, be very careful of the order in which you are checking for rolls that exceed 100 and if the player lands on a snake/ladder square.