Won't e1.message.split("")[0] give you the first letter of Cannot ? So the expression actually evaluates C === C. Great series though, it's really helpfull for us begginers. Thank you Coderslang.
It's splitting on " ", not "", so it will split on spaces, not every character. That means the first element will be the word "Cannot".
" "
""
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Won't e1.message.split("")[0] give you the first letter of Cannot ? So the expression actually evaluates C === C. Great series though, it's really helpfull for us begginers. Thank you Coderslang.
It's splitting on
" "
, not""
, so it will split on spaces, not every character. That means the first element will be the word "Cannot".