-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.js
More file actions
9 lines (7 loc) · 601 Bytes
/
Copy path4.js
File metadata and controls
9 lines (7 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
/*const twelveHourClockTime = "20:53";
const twentyFourHourClockTime = "08:53";
*/
//
// The code above won't work because the variable names suggest that twelveHourClockTime should represent a time in 12-hour format, while twentyFourHourClockTime should represent a time in 24-hour format. However, the values assigned to these variables are not consistent with their names. To fix this error, we can either change the variable names to match the values or update the values to match the variable names. For example:
const twelveHourClockTime = "08:53 PM";
const twentyFourHourClockTime = "20:53";