Front End Web Developer Question:

Tell me how To Use A Function A Class?

Tweet Share WhatsApp

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 PDF Read All 76 Front End Web Developer Questions
Previous QuestionNext Question
What Is The Difference Between Null And Undefined?Do you know what Is A Float?