DEV Community

Discussion on: JS Test #4: try/catch

Collapse
 
darrylnoakes profile image
Darryl Noakes

It's splitting on " ", not "", so it will split on spaces, not every character. That means the first element will be the word "Cannot".