Skip to content

Instantly share code, notes, and snippets.

@nazrievfarrukhjon
Created January 20, 2020 09:13
Show Gist options
  • Save nazrievfarrukhjon/73f27ea719d128cdbc3f75007c682e95 to your computer and use it in GitHub Desktop.
Save nazrievfarrukhjon/73f27ea719d128cdbc3f75007c682e95 to your computer and use it in GitHub Desktop.
nikolay smotry
<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