class
🚧 under construction
Last updated
Was this helpful?
🚧 under construction
Last updated
Was this helpful?
⟩ ⟩ ⟩ class
creates a new class and gives it a name (identifier).
no between class member declarations
are prefixed with .
class declaration is not
cannot use a class before its declaration ( temporal dead zone)
a class's (property) is read-only
ReferenceError: .
an error mostly caused by referencing a let/ const/ class in its temporal dead zone
using typeof on lexical declaration (let/ const/ class) in its temporal dead zone will throw a .
replit:
object literal / class / switch ( no block scope)
function's is different from a block scope
📗
prototype of a class is non-writable, non-configurable, that is, can't reassign it, can't delete it or change its .
⟩
MDN ⟩ ⟩