DEV Community

Discussion on: 17 Javascript optimization tips to know in 2021 🚀

Collapse
 
ram12ka4 profile image
Ram Kumar Basak

I am getting " Uncaught SyntaxError: expected expression, got keyword 'throw' " error while declaring this statement (!func) && throw new Error('Invalid value ' + type);

Collapse
 
blessinghirwa profile image
Blessing Hirwa

which trick were you trying?

Collapse
 
ram12ka4 profile image
Ram Kumar Basak

I just type code you mentioned on console and got this error

Thread Thread
 
blessinghirwa profile image
Blessing Hirwa

which code? On which trick number?

Thread Thread
 
ram12ka4 profile image
Ram Kumar Basak

I typed the code of point no 12 on console