This JavaScript function is broken. So what will happen if you try to use it?
function sum() {
return a + b;
}
If you call this function, you’re going to get a reference error which says, "a is not defined".
And this makes sense, the sum
function is using two values, a
and b
,...