+ 1

Key word this.

What is the keyword(this.) how and when can i use it ? It drives me craze😭

5th Mar 2018, 9:55 PM
Roohollah Habibi
Roohollah Habibi - avatar
1 Odpowiedź
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
6th Mar 2018, 3:13 PM
Roohollah Habibi
Roohollah Habibi - avatar