Skip to content

Commit b5f1e22

Browse files
committed
Updated the comments on line 25 to make clearer and consice.Function taking global parameter only
1 parent b50c220 commit b5f1e22

File tree

1 file changed

+1
-1
lines changed
  • Sprint-2/2-mandatory-debug

1 file changed

+1
-1
lines changed

Sprint-2/2-mandatory-debug/2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// Explain why the output is the way it is
2424
// =============> write your explanation here
25-
// The function getLastDigit is not taking any parameters, so it always returns the last digit of the global variable 'num', which is 103. The function should take a number as a parameter and return the last digit of that number.
25+
// The function getLastDigit Twill ignore the arguments passed in and always return the last digit of the global variable num, which is 103. The function should take a number as a parameter and return the last digit of that number.
2626

2727
// Finally, correct the code to fix the problem
2828
// =============> write your new code here

0 commit comments

Comments
 (0)