Last active
January 16, 2019 14:23
-
-
Save ms314006/6262e16e5aa8f0b7cc3be8f170a27da9 to your computer and use it in GitHub Desktop.
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 str = 'init' | |
const func = () => { | |
str='changed' | |
} | |
setTimeout(func,3000) | |
console.log(str) // '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment