absbeginner// Get the absolute value of a number
Math.abs(-7) // β 7
Math.abs(3.5) // β 3.5Use Math.abs() when you need the magnitude of a number regardless of its sign.
When passed a positive number, Math.abs() returns it unchanged.
Challenge: Verify that Math.abs() leaves positive numbers unchanged.