File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const errorOutput = fs.createWriteStream('./stderr.log');
88
88
// custom simple logger
89
89
const logger = new Console (output, errorOutput);
90
90
// use it like console
91
- var count = 5 ;
91
+ const count = 5 ;
92
92
logger .log (' count: %d' , count);
93
93
// in stdout.log: count 5
94
94
```
@@ -217,7 +217,7 @@ values similar to printf(3) (the arguments are all passed to
217
217
[ ` util.format() ` ] [ ] ).
218
218
219
219
``` js
220
- var count = 5 ;
220
+ const count = 5 ;
221
221
console .log (' count: %d' , count);
222
222
// Prints: count: 5, to stdout
223
223
console .log (' count:' , count);
@@ -248,7 +248,7 @@ prints the result to `stdout`:
248
248
249
249
``` js
250
250
console .time (' 100-elements' );
251
- for (var i = 0 ; i < 100 ; i++ ) {
251
+ for (let i = 0 ; i < 100 ; i++ ) {
252
252
;
253
253
}
254
254
console .timeEnd (' 100-elements' );
You can’t perform that action at this time.
0 commit comments