Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

creating JS classes

// creating a class
class Person {
  constructor(name) {
    this.name = name;
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #creating #JS #classes
ADD COMMENT
Topic
Name
8+3 =