Skip to content

Commit c50dd38

Browse files
committed
Implement square function to correctly return the square of a number
1 parent c53c5ed commit c50dd38

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/2.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
// Finally, correct the code to fix the problem
2121

2222
// =============> write your new code here
23+
function square(n){
24+
return n * n;
25+
}
26+
console.log(square(77));
2327

2428

0 commit comments

Comments
 (0)