Answers

Question and Answer:

  Home  Front End Web Developer

⟩ Tell me how To Use A Function A Class?

function functionName(name) {

this.name = name;

}

// Creating an object

var functionName = new functionName("WTEN");

console.log(functionName.name); //WTEN

 172 views

More Questions for you: