Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var name = "Siddiq";
- //this.name = "Siddiq"; this one for node JS yu can use in browser also
- let displayName = () => {
- console.log(this.name);
- }
- displayName(); // siddiq
- let student = {
- "name": "Yusuf",
- "display": displayName
- }
- student.display(); //siddiq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement