Skip to content

Commit

Permalink
added square.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Dec 11, 2022
1 parent 775be57 commit e2621fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions square.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const pow = require("./pow.js");
* @param {String} base - numerical string
* @returns {String} square as a numerical string
*/
function square(base) {
return pow(base, "2");
function square(base, options) {
return pow(base, "2", options);
}

module.exports = square;
Expand Down

0 comments on commit e2621fa

Please sign in to comment.