-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.js
More file actions
18 lines (14 loc) · 543 Bytes
/
Copy path4.js
File metadata and controls
18 lines (14 loc) · 543 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// const 12HourClockTime = "20:53";
// const 24hourClockTime = "08:53";
/**
* In javascript variable can't start with a number
* Can contain letters, digits (but not at the start), underscore _, and dollar signs $
*
* const 12HourClockTime = "20:53"; will cause a SyntaxError because variable name can't begin with a number.
*
* To fix it need to chang the name to start with a letter.
*/
const twelveHourClockTime = "08:53";
const twentyFourClockTime = "20:53";
console.log(twelveHourClockTime);
console.log(twentyFourClockTime);