Skip to content

Commit d8109f2

Browse files
committed
Rename variables to avoid starting with numbers and update comments for clarity 4.js
1 parent 993c40c commit d8109f2

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const Twelve_HourClockTime = "20:53";
2+
const Twenty_Four_hourClockTime = "08:53";
3+
4+
//Variables cannot have numbers at the start of their name
5+
//the times are in the wrong format for their variable names

0 commit comments

Comments
 (0)