From 300265bc3f5722ec5113fbe0da638a05b64c7738 Mon Sep 17 00:00:00 2001 From: kevinnls Date: Mon, 26 Aug 2024 12:23:11 +0530 Subject: [PATCH] add jsdoc --- main.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.mjs b/main.mjs index f89b8a6..8334f27 100644 --- a/main.mjs +++ b/main.mjs @@ -30,6 +30,14 @@ const grades = [ } ] +/** + * Returns the grade corresponding to mark. + * + * @param {number} input The marks out of 100. + * @return The corresponding grade of the marks. + * @customfunction + */ + function getGrade(mark){ if (typeof(mark) != 'number') for (let i=0;i<=grades.length-1;i++){