The general syntax for this method is:
This method returns the positive value of a number, which can be printed or
stored in a variable.
abs works on both integer and decimal values.
Numerical strings can also be evaluated, but should be avoided as a best practice.
3 4.44 3.33 8
Math.abs also works on arrays, but to make the process work, we must
combine it with the map array method. The syntax for this
Math.abs takes no argument when applied to an array.
[2, 3, 4.44, 8.88]