Skip to content

Commit aa6ee27

Browse files
committed
removing extra lines
1 parent 0605160 commit aa6ee27

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const twelveHourClockTime = "8:53pm";
22
const twentyFourHourClockTime = "20:53";
33

4-
// To convert 12HourClockTime to 24-hour format, we can use the following steps:
5-
// 1. Split the string into hours and minutes using the split() method.
6-
// 2. Check if the time is in the "pm" period. If it is, add 12 to the hours (unless it's 12pm).
7-
// 3. If the time is in the "am" period and the hour is 12, set the hour to 0.
84
//The error is SyntaxError: Invalid or unexpected token, because a variable name cannot start with a digit.

0 commit comments

Comments
 (0)