Front End Web Developer Question:
Download Job Interview Questions and Answers PDF
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
Download Front End Web Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What Is The Difference Between Null And Undefined? | Do you know what Is A Float? |