From 85202dedd85d16779a69750fe09b4531c95abb22 Mon Sep 17 00:00:00 2001 From: Sabrina Date: Sun, 25 Oct 2020 16:31:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5abs=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index eb8b358..968fac6 100644 --- a/index.html +++ b/index.html @@ -21,9 +21,13 @@ function minus(a, b) { return a-b; } - + function pow(a, b) { - return Math.pow(a,b); + return Math.pow(a, b); + } + + function abs(a) { + return Math.abs(a); }