Skip to content

Commit f4e13bc

Browse files
committed
Solving the code issue
1 parent a661310 commit f4e13bc

File tree

1 file changed

+15
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+15
-1
lines changed

Sprint-1/2-mandatory-errors/4.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
2+
const 24hourClockTime = "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

0 commit comments

Comments
 (0)