// function variables can only be used inside define define
var c = 1
var d = 2
function Func(a, b) {
var e = 10
console.log(a + b + c + d + e);
}
Func(10, 5)
// 28
function Func2(a, b) {
console.log(a - b + c + d + e);
}
Func2(10, 5)
// ReferenceError: e is not defined (/index.js:11)