Answers for "Function Scope - example -1"

0

Function Scope - example -1

// The following variables are defined in the global scope
var x = 12, y = 25;

// This function is defined in the global scope
function add(){
  return (x + y);
}

add(); // Returns 37
Posted by: Guest on June-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language