const requires initialization

JSstatementdeclarationconst ⟩ requires initialization

const what;    // no initial value❗
//    ^^^^
// ⛔ SyntaxError: Missing initializer in const declaration

Last updated

Was this helpful?