-
-
Save nazrievfarrukhjon/73f27ea719d128cdbc3f75007c682e95 to your computer and use it in GitHub Desktop.
nikolay smotry
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
<html> | |
<script> | |
function ourApp(){ | |
const name = 'First Person'; | |
const someOne={ | |
name:'SomeOne', | |
getName:function(){ | |
return this.name; | |
} | |
}; | |
console.log(someOne.getName()); | |
const someOneAnother={ | |
name:'SomeOneAnother', | |
getName:()=>{ | |
return this.name; | |
} | |
} | |
console.log(someOneAnother.getName()); | |
} | |
ourApp(); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment