Preview:
// Given any integer return the absolute value.
Math.abs(num) => Always positive

// Given any number return the inverse of its absolute value.
-Math.abs(num) => Always negative
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter