Codewars currently uses NodeJS v8.1.3 (you can check the version at the top of the Kata screen: there's a drop down allowing you to choose language + a dropdown to choose the version).
I've tried to use the Array.prototype.flat() method in many different katas and for some reason codewars doesn't seem to accept it. I run all my codes no problem on VSCODE but always get an error when trying to use .flat(). Here is the official doccumentation for the method:
It'd be good to add examples in the instructions (they'll look very verbose but helpful anyway).
Array.prototype.flat() is only supported from NodeJS v.11:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat#Browser_compatibility
Codewars currently uses NodeJS v8.1.3 (you can check the version at the top of the Kata screen: there's a drop down allowing you to choose language + a dropdown to choose the version).
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
done
I've tried to use the Array.prototype.flat() method in many different katas and for some reason codewars doesn't seem to accept it. I run all my codes no problem on VSCODE but always get an error when trying to use .flat(). Here is the official doccumentation for the method:
https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
Node v12.13.0 is not supported in CW yet.
It runs in Node v12.13.0 (on my Mac) perfectly!
Not an issue. This method is not available in any of the supported Node versions.
This comment is hidden because it contains spoiler information about the solution
Your sorting step is wrong.
This comment is hidden because it contains spoiler information about the solution
Thank you
As I finally understood the 11 counted pairs are :
(JS)
The test is expecting 11 as the answer
How can there be 11 anagrams, when there's only 7 words?
Loading more items...