Skip to content

Instantly share code, notes, and snippets.

@AliN11
Last active June 30, 2019 13:39
Show Gist options
  • Save AliN11/1c6dad911e1c8ea2aec53794171deb5b to your computer and use it in GitHub Desktop.
Save AliN11/1c6dad911e1c8ea2aec53794171deb5b to your computer and use it in GitHub Desktop.
window.name = 'شایان شایان پرور';
function greeting() {
console.log('سلام آقای ' + window.name);
}
greeting(); // سلام آقای شایان شایان پرور
// ...
function userCustomFunction() {
window.name = 'سارا سارانژاد';
}
userCustomFunction();
greeting(); // سلام آقای سارا سارانژاد
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment