Skip to content

Commit

Permalink
doc: updated jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
adekunleoduye committed Aug 26, 2021
1 parent d948501 commit 0084b54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions squareRoot.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

/**
* Outputs square value
* Outputs square of num
*
* i.e. squareRoot(3) => 9
*
* @param {int} num - Input number
* @returns
* @param {number} num - Input number
* @returns {number} Square root of num
*/
export default function squareRoot(num) {
return num ** 2
Expand Down

0 comments on commit 0084b54

Please sign in to comment.