Abdo Amin
1 min readFeb 18, 2020

--

your example is invalid, because it’s a typeError not a syntaxError.

here:

console.log(‘hi’)

console.log(‘hi’))

SyntaxError: Unexpected token

--

--

Abdo Amin

I love React and anything that has JavaScript and frontend in it.