There was an error while loading. Please reload this page.
1 parent a1ecaa4 commit 9a0ba04Copy full SHA for 9a0ba04
1 file changed
Sprint-3/1-key-errors/2.js
@@ -14,7 +14,7 @@
14
15
// =============> explain this error message here
16
/* The function was givin a number as its perameter where in JS only allows varaible names and usnig a number causes a SyntaxError
17
- Also, the function was returning num*num where num is undefined causing a syntax error
+ Also, the function was returning num*num where num is undefined causing a SyntaxError
18
*/
19
20
// Finally, correct the code to fix the problem
@@ -25,4 +25,4 @@ function square(num) {
25
return num * num;
26
}
27
28
-console.log(square(25));
+console.log(square(25));
0 commit comments