⛔statement expected❗️
can't use "declaration" when expecting "statement"❗️
JS ⟩ grammar ⟩ expecting statement
can't use declaration when expecting statement❗
var is a statement❗ (👉 var is a statement❗️)
let/const is a declaration.
Last updated
can't use "declaration" when expecting "statement"❗️
JS ⟩ grammar ⟩ expecting statement
can't use declaration when expecting statement❗
var is a statement❗ (👉 var is a statement❗️)
let/const is a declaration.
Last updated