Last active
March 26, 2022 18:27
-
-
Save rehasantiago/1e28c0a77db8483f5aa31b7cd7c411e8 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
let song = { | |
songName: 'Blank Space', | |
getSong: function() { | |
console.log(this.songName); | |
} | |
}; | |
let song1 = song.getSong.bind(song); // Blank Space | |
setTimeout(song1, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment