File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Sprint-1/2-mandatory-errors Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2121//*Answer
2222const cardNumber = 4533787178994213 ;
2323const last4Digits = cardNumber . toString ( ) . slice ( - 4 ) ;
24- console . log ( last4Digits ) ;
24+ console . log ( last4Digits ) ;
Original file line number Diff line number Diff line change 1- const 12 HourClockTime = "20:53" ;
2- const 24 hourClockTime = "08:53" ;
1+ //const 12HourClockTime = "20:53";
2+ //const 24hourClockTime = "08:53";
3+
4+ //What's wrong with this code?
5+ //*Answer
6+ //The variable is not named in line with the Javascript naming convention.
7+ // When declaring a variable it must not start with a number, space or reserved word.
8+ // to fix this, we can rename them correctly.
9+
10+ const twelve_HourClockTime = "20:53" ;
11+ const twentyFour_HourClockTime = "08:53" ;
You can’t perform that action at this time.
0 commit comments