From 379efee2ab652fb23f22e11651d2d8af3f152592 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 4 May 2020 16:07:46 +0200 Subject: [PATCH] abs.js: abs_val() --> absVal() for standardjs --- maths/abs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))