We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a90b487 commit 5511405Copy full SHA for 5511405
maths/abs.js
@@ -11,7 +11,7 @@
11
https://en.wikipedia.org/wiki/Absolute_value
12
*/
13
14
-function abs_val (num) {
+function absVal (num) {
15
// Find absolute value of `num`.
16
'use strict'
17
if (num < 0) {
@@ -22,5 +22,5 @@ function abs_val (num) {
22
}
23
24
// Run `abs` function to find absolute value of two numbers.
25
-console.log('The absolute value of -34 is ' + abs_val(-34))
26
-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))
0 commit comments