Why do we have to check for an empty string/array if it states in the description "The string has a length greater or equal to one and contains only letters from ato z.
". I was stuck on this much longer than I should have. I pretty much had the same exact answer except I wasn't checking for an empty string/array because it wasn't explicitly stated to check for an empty string/array. /=
When invoking string interpolation through ${var.function()} Aren't we creating a new object, therefore, not mutating the original var? The declared string should be immutable in JS...
wouldn't a match be preferable in this case?
me too
regex is my weak point :(
Very neat.
It' very elegant solution
Sheeessshh, one hell of an one liner. One hit, one pull and that's it.
Wow this is a really cool solution.
This comment is hidden because it contains spoiler information about the solution
champian man
watch web dev simplified tutorial it helped me understand regex a lot
Why do we have to check for an empty string/array if it states in the description "The string has a length greater or equal to one and contains only letters from ato z.
". I was stuck on this much longer than I should have. I pretty much had the same exact answer except I wasn't checking for an empty string/array because it wasn't explicitly stated to check for an empty string/array. /=
I like how you use a dollar sign and brackets to calculate the left side first and then the right side.
Compact and clearly solution
nice
When invoking string interpolation through
${var.function()}
Aren't we creating a new object, therefore, not mutating the original var? The declared string should be immutable in JS...Loading more items...