Last active
July 16, 2019 17:49
-
-
Save ahmarsuhail/b5547baf42e1c3607c961b2d5fb0414c to your computer and use it in GitHub Desktop.
Javascript Object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: "Ahmar", | |
printName: function() { | |
console.log(this.name); | |
} | |
} | |
user.printName(); //Outputs: "Ahmar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment