Front End Web Developer Question:

Download Job Interview Questions and Answers PDF

Tell me how To Use A Function A Class?

Front End Web Developer Interview Question
Front End Web Developer Interview Question

Answer:

function functionName(name) {
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 QuestionNext Question
What Is The Difference Between Null And Undefined?Do you know what Is A Float?