Created
March 26, 2022 18:06
-
-
Save rehasantiago/cc9e8d1e7ad8f5a3c4410aa3c67a6a19 to your computer and use it in GitHub Desktop.
Revealing the mystery behind this - https://readosapien.com/revealing-the-mystery-behind-this
This file contains 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
var singer = { | |
name: "Dua Lipa", | |
songs: function() { | |
function songAndSinger(){ | |
console.log(this === singer) // true | |
} | |
songAndSinger.apply(singer) | |
} | |
} | |
singer.songs(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment