Front End Web Developer Question:
Tell me how To Use A Function A Class?

Answer:
function functionName(name) {
this.name = name;
}
// Creating an object
var functionName = new functionName("WTEN");
console.log(functionName.name); //WTEN
this.name = name;
}
// Creating an object
var functionName = new functionName("WTEN");
console.log(functionName.name); //WTEN
Previous Question | Next Question |
What Is The Difference Between Null And Undefined? | Do you know what Is A Float? |