We have the following code: Make an edit to this code. What variable can we globalize to

Question:

We have the following code: 

image text in transcribed

Make an edit to this code. What variable can we globalize to simplify the methods? You can also change the method definitions.

Note you don’t need to worry about how we came up with the roundUp() and roundDown() method definitions. Just know that they do the following: 

● roundUp() : rounds up if decimal point is 5 or greater. For example, 10.5 will round to 11. 

● roundDown() : rounds down regardless of the number. For example, 10.5 will round to 10.  

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: