diff --git a/maths/abs.js b/maths/abs.js index 1ff71e8ee6..454e4073a6 100644 --- a/maths/abs.js +++ b/maths/abs.js @@ -11,7 +11,7 @@ https://en.wikipedia.org/wiki/Absolute_value */ -function abs_val (num) { +function absVal (num) { // Find absolute value of `num`. 'use strict' if (num < 0) { @@ -22,5 +22,5 @@ function abs_val (num) { } // Run `abs` function to find absolute value of two numbers. -console.log('The absolute value of -34 is ' + abs_val(-34)) -console.log('The absolute value of 34 is ' + abs_val(34)) +console.log('The absolute value of -34 is ' + absVal(-34)) +console.log('The absolute value of 34 is ' + absVal(34))