Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Change Name Of Function Constructor

var person = function Person(name)
{
this.name = name;

}

var notperson = person;
const p1 = new notperson("John Smith")
console.log(p1.name);
/*also John Smith*/
 
PREVIOUS NEXT
Tagged: #Change #Name #Of #Function #Constructor
ADD COMMENT
Topic
Name
5+8 =