DEV Community

Discussion on: Critique my JS solution to this CodeWars Kata

Collapse
 
dmerand profile image
Donald Merand • Edited

@dmfay This is a very elegant solution! I like that you're explaining the reasons why you did things like use a const etc.

One thing you didn't mention is the use of the spread syntax ([...dna]), which is definitely handy in JS when passing arrays around.