Skip to content

Instantly share code, notes, and snippets.

@amrelarabi
Created December 12, 2021 07:33
Show Gist options
  • Save amrelarabi/a3cbb5b358e71b81088e95136a0b9c32 to your computer and use it in GitHub Desktop.
Save amrelarabi/a3cbb5b358e71b81088e95136a0b9c32 to your computer and use it in GitHub Desktop.
function Person(){
this.age = 0;
setInterval(() => {
this.age++; // this فى هذه الحالة تعود على person
}, 1000);
}
var p = new Person();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment