Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js constructor syntax

var MyConstructor = function(p1, p2, p3){
  this.p1 = p1;
  this.p2 = p2;
  this.p3 = p3;
};
 
PREVIOUS NEXT
Tagged: #js #constructor #syntax
ADD COMMENT
Topic
Name
1+6 =