ganqqwerty / 123-Essential-JavaScript-Interview-Questions

JavaScript interview Questions
BSD 3-Clause "New" or "Revised" License
5.01k stars 1.18k forks source link

Question 23 new keyword in missing #47

Closed getmetorajesh closed 6 years ago

getmetorajesh commented 6 years ago

function User(name) { this.name = name || "JsGeeks"; }

var person; var foo = User("xyz") // should be new User("xyz")

getmetorajesh commented 6 years ago

48 fixed

ganqqwerty commented 6 years ago

thanks!