how to make a negative number positive as a function in javascript code example Example: convert negative number to positive in javascript Math.abs("the negative number")