Last active
March 29, 2018 17:40
-
-
Save zonayedpca/428a484728f1e329ffad2a433ca81c37 to your computer and use it in GitHub Desktop.
Basic Function
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
function changeValue(a) { | |
console.log('Value of a inside function before changing: ' + a); | |
a = 10; | |
console.log('Value of a inside function after changing: ' + a); | |
return a; | |
} | |
var a = 100; | |
console.log('Value of a before changing function is applied: ' + a); | |
changeValue(a); | |
console.log('Value of a after changing function is applied: ' + a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment