en.javascript.info
en.javascript.info copied to clipboard
some information about the constructor function in js
we can normally add the multi-line words as the keys to the object but using the constructor function it cannot be possible for instance:
function User(current_sal){ this."updated salary" // not possible //or this.[current_sal] // not possible }