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.
This series of courses is very effective for learning RexExp :
https://www.codewars.com/kata/5735e39313c205fe39001173
Training JS #37 up to #42
given { name: "Minnie", surname: "Mouse", gender: "F", dob: "164/8/1966" }
expected 'MSOMNN164/8/1966' to equal 'MSOMNN66M204'
164/8/1966 ! The date format is not respected I suppose 164 is an error ?
Thx Blind4Basics I will learn to read correctly !
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
LaPy you can use RegExp to replace Chuck by Putin!
OK the problem was the g flag that we don't need to use here !!
https://stackoverflow.com/questions/2851308/why-does-my-javascript-regex-test-give-alternating-results
This comment is hidden because it contains spoiler information about the solution
Thx g964,
using Lodash .sortBy() instead of .sort() was an effective approach in my case
This comment is hidden because it contains spoiler information about the solution