Question
I don’t know how to find the first character in a string
Answer
Why am I getting an error SyntaxError: Unexpected token return
when refactoring to arrow function syntax on step 3?
Double check your arrow function syntax. Arrow functions don’t need a return
. Remove the return
keyword and the error should disappear.