+ 1
Key word this.
What is the keyword(this.) how and when can i use it ? It drives me crazeđ
1 Answer
0
So it means that (this) return itâs object as an output.
e.g a function with parameters returns them but how should I call it ?
Should i call the function name in document. Write?
Function name(name,lastName){
this.firstName:name,
this.lastname:lastName
};
document.write(name