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.
Here you are guaranteed to get the unique numbers only in the array.
Didn't know you can do that with replace.. nice! :
yeah if you have only one argument to pass then no need for the paranthesis if you have more then one then you need to put paranthesis around argument ( pardon my english )
Nice solution!
this is still wrong
consecutive([1, 3, 3, 5, 7], 3, 3)
This comment is hidden because it contains spoiler information about the solution
Good job!
thank you for your help! :)
When there is only one parameter, the parentheses may be ommited. Similarly, when there is only one expression and this expression is returned, the curly brackets and return keyword may be ommited.
The arrow function does not require parenthese; for example in .map(x=>x...) the parenthese is not brought by the arrow function, but by the map method. You can define a function like this :
There is no need of parentheses
arrow function without parenthese? It it not nessesary? someone can explain it for me? :)
Yes, only works in unique, but great catch in this case.
A really excellent series with a fantastic (and satisfying) conclusion. :)
Well done!
Thanks for pointing out;
Fixed.
The random tests for Javascript are producing input strings with xx and ij. Here's an example of 'ij' (index 26 and 27):
WNrGojUBX S IUvOhHJoMAHobjixaxTR TxMAYpucH AtlTvTEchV velDEZ ZrftOO sucThHjL O w SddDt EgF AaxDkkLAX TsKUkLzbHI SGV WwQCHAsUpP NCkBlB lehrROr wJzXjMrVAxJUwHHyuNplC dl gK M
And one for 'xx' after spaces are removed (index 85-87)
zIoCjndhUzH Y sMOfUV O mWoxPumbIlV m rz udP VTXk If HQZWF f mpA N sKd ZJgMc ZhX XBmWTvGWVym xZGm
Sometimes the test results encrypt like the double letters were in the same row of the matrix - other times like they're in the same column.
Loading more items...