New course! Every coder should learn Generative AI!
Try a free lesson+ 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