Advertisement
KodingKid

Javascript this (literally this)

Mar 29th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var person = {
  2.   firstName: "Jorge",
  3.   lastName : "Ferdinand",
  4.   id       : 1350,
  5.   fullName : function() {
  6.     return this.firstName + " " + this.lastName;
  7.   }
  8. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement