Skip to content

Commit

Permalink
prefer let to var
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Mar 11, 2024
1 parent 0a34123 commit a23b4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jqClock.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ if (!Number.prototype.map) {
let dateStr = "";
let chr;
const { myoptions } = clk;
for (var n = 0; n <= myoptions.dateFormat.length; n++) {
for (let n = 0; n <= myoptions.dateFormat.length; n++) {
chr = myoptions.dateFormat.charAt(n);
if( chr in dateFormatCharacters ) {
dateStr += dateFormatCharacters[chr]( clk );
Expand All @@ -613,7 +613,7 @@ if (!Number.prototype.map) {
let timeStr = "";
let chr;
const { myoptions } = clk;
for (var n = 0; n <= myoptions.timeFormat.length; n++) {
for (let n = 0; n <= myoptions.timeFormat.length; n++) {
chr = myoptions.timeFormat.charAt(n);
if( chr in timeFormatCharacters ) {
timeStr += timeFormatCharacters[chr]( clk );
Expand Down

0 comments on commit a23b4a5

Please sign in to comment.