function whatIsReturned() {
var total = "one";
var TOTAL = "two";
return total;
}
whatIsReturned();
This answer is not correct - the 'result' will be that a function whatIsReturned will be added to the global scope, but nothing will be returned. In order for the answer 'one' to be correct you would either need to add a call to whatIsReturned() after declaring the function whatIsReturned or make whatIsReturned self invoking by adding () to the end after the last }.
2016 Jun 12, 2:07:07 PM
Login in to like
Login in to comment