Skip to content

Instantly share code, notes, and snippets.

@Tomokatsu-Sakamoto
Created February 17, 2022 05:40
Show Gist options
  • Save Tomokatsu-Sakamoto/a403328ef9ff3c643951cbe00396c6bd to your computer and use it in GitHub Desktop.
Save Tomokatsu-Sakamoto/a403328ef9ff3c643951cbe00396c6bd to your computer and use it in GitHub Desktop.
var valueA;
function functA( ) {
var valueB = 2;
console.log( `A: A=`, valueA, " B=", valueB );
valueA = 1;
functB();
console.log( `A: A=`, valueA, " B=", valueB );
}
function functB( ) {
var valueA = 3;
var valueB = 4;
console.log( `B: A=`, valueA, " B=", valueB );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment