Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 class example

var Polygon = class { 
   constructor(height, width) { 
      this.height = height; 
      this.width = width; 
   } 
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #class
ADD COMMENT
Topic
Name
8+1 =