add jsdoc
This commit is contained in:
8
main.mjs
8
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++){
|
||||
|
||||
Reference in New Issue
Block a user