Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to define class in javascript

const p = new Rectangle(); // ReferenceError
class Rectangle {}
// functions can be called even before they are defined, but classes must be defined before they can be constructed.
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #define #class #javascript
ADD COMMENT
Topic
Name
9+9 =