Skip to content

Commit 364a5e9

Browse files
committed
predicted and explained the error of the code
1 parent 3923291 commit 364a5e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Sprint-3/2-mandatory-debug

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Predict and explain first...
22

33
// Predict the output of the following code:
4-
// =============> Write your prediction here
4+
// =============> I think the num variable can be accesed by the funtion getLastDigit()
5+
// so it means it is not using the argument that is passed by the function.
6+
// the output for the three of function calls will be 3.
57

68
const num = 103;
79

0 commit comments

Comments
 (0)