Skip to content

Commit f98c27d

Browse files
Improve variable naming and use const
1 parent ff2c4c5 commit f98c27d

File tree

1 file changed

+2
-2
lines changed
  • Sprint-2/1-key-errors

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ function square(3) {
4040
function square(num) {
4141
return num * num;
4242
}
43-
let num = square(3);
44-
console.log(num);
43+
const squaredValue = square(3);
44+
console.log(squaredValue);

0 commit comments

Comments
 (0)