Variable Scope
function multiply(num) {
total = num * num;
return total;
}
let total = 9;
let number = multiply(20);
console.log(total)
/* output
400
*/INFO
function multiply(num) {
total = num * num;
return total;
}
let total = 9;
let number = multiply(20);
console.log(total)
/* output
400
*/