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);
@@ -249,7 +249,7 @@ prints the result to stdout:
249
249
250
250
``` js
251
251
console .time (' 100-elements' );
252
- for (var i = 0 ; i < 100 ; i++ ) {
252
+ for (let i = 0 ; i < 100 ; i++ ) {
253
253
;
254
254
}
255
255
console .timeEnd (' 100-elements' );
You can’t perform that action at this time.
0 commit comments