File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Sprint-1/2-mandatory-errors Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11const 12 HourClockTime = "20:53" ;
2- const 24 hourClockTime = "08:53" ;
2+ const 24 hourClockTime = "08:53" ;
3+
4+ // we have to convert the identifiers of the variables to valid ones by removing the 12 and 24 digits and to put them in camel case format.
5+ const twelveHourClockTime = "20:53" ;
6+ const twentyFourHourClockTime = "08:53" ;
7+
8+ console . log ( twelveHourClockTime ) ;
9+ console . log ( twentyFourHourClockTime ) ;
10+
11+ // The twelveHourClockTime and twentyFourHourClockTime variables should store the respective time formats
12+ // However, the code isn't working
13+ // Before running the code, make and explain a prediction about why the code won't work
14+ // Then run the code and see what error it gives.
15+ // Consider: Why does it give this error? Is this what I predicted? If not, what's different?
16+ // Then try updating the variable names to valid identifiers in order to get the correct value
You can’t perform that action at this time.
0 commit comments