Skip to content

Commit

Permalink
Completed Squaring an Argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinctofel committed May 10, 2022
1 parent 4fca3e8 commit 097cbfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SquaringAnArgument.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const multiply = (num1, num2) => {
return num1 * num2;
};

const square = (numToSquare) => {
return multiply(numToSquare, numToSquare);
};

console.log(square(5) === 25); // logs true
console.log(square(-8) === 64); // logs true

0 comments on commit 097cbfb

Please sign in to comment.