Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Hoisting

// accessing class
const p = new Person(); // ReferenceError

// defining class
class Person {
  constructor(name) {
    this.name = name;
  }
}
Source by fireship.io #
 
PREVIOUS NEXT
Tagged: #javascript #Hoisting
ADD COMMENT
Topic
Name
6+6 =