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
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us