Created
March 5, 2017 08:50
-
-
Save Dosant/81f2916247731a4d0d22fa2ec044ee03 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 phrase = 'Привет'; | |
function sayHi(name) { | |
alert(phrase + ', ' + name); | |
} | |
sayHi('Вася'); // Привет, Вася (*) | |
phrase = 'Пока'; | |
sayHi('Вася'); // Пока, Вася (**) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment