Skip to content

Commit ed9ed8f

Browse files
committed
addid some format to the comments lines 3 to 13
1 parent 639ccdb commit ed9ed8f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Sprint-2/debug/2.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// Predict and explain first...
22

33
/*
4-
- If we run this code. nothing will happen because the function is not called.
4+
- If we run this code. nothing will happen because the function is not called.
55
6-
-once we invoke the function this will take the number and converted into string to manipulate and take the las digit and return the new string 42 => will return 2.
6+
-once we invoke the function this will take the number and converted into string to manipulate and take the las digit and return the new string 42 => will return 2.
77
8-
const num = 103;
9-
10-
function getLastDigit() {
11-
return num.toString().slice(-1);
12-
}
8+
const num = 103;
139
10+
function getLastDigit() {
11+
return num.toString().slice(-1);
12+
}
1413
*/
1514

1615
//=========== This will work ==============

0 commit comments

Comments
 (0)