Here is the background context for the following code (which works!): a number rounds up if the tenths digit is greater than or equal to 5, but rounds down if the number is less than 5.
I’m wondering if I can replace the
.split method with
.slice though, and how the code for using
.slice instead would look? Any insight is appreciated. Thank you in advance!