Why should this code return the variable total? Goal: Use the value that was already calculated instead of recalculating it.
Follow a tiny function from setup to return.
Look for the value that is updated every loop and then returned.
1// Goal: Use the value that was already calculated instead of recalculating it.2function starterExample() {3const total = 2 + 3;4return total;5}
Why should this code return the variable total?