Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

class constructor syntax

class Rectangle {
  constructor(height, width) {
    this.height = height;
    this.width = width;
  }
}
 
PREVIOUS NEXT
Tagged: #class #constructor #syntax
ADD COMMENT
Topic
Name
4+7 =