convert positive and negative string to number javascript code example Example: convert negative number to positive in javascript Math.abs("the negative number")