Project: Absolute Value
Write a program to compute [[Absolute_value|absolute values]]. The absolute value of a number |x| is x if x is positive and -x if x is negative.
Output
$ node AbsoluteValue.js
|5| = 5
|-3| = 3
|0| = 0
|3.14| = 3.14
|-1.2| = 1.2
|0| = 0