Skip to content

Commit 3503a51

Browse files
applied the naming convention to the first variable
1 parent 264a822 commit 3503a51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const $12HourClockTime = "8:53pm";
1+
const twelveHourClockTime = "8:53pm";
22
const _hourClockTime = "20:53";
33
/*names beginning with $ or _ often carry special conventions:
44
55
_name often implies a private/internal variable.
66
$name is commonly associated with libraries like jQuery or special framework objects.*/
7-
/*For ordinary variables, it's usually clearer to start with a letter and use camelCase and avoid special characters, not starting with a number. and choosing meaningful names that describe the variable's purpose.*/
7+
/*For ordinary variables, it's usually clearer to start with a letter and use camelCase and avoid special characters, not starting with a number. and choosing meaningful names that describe the variable's purpose.*/

0 commit comments

Comments
 (0)