There was an error while loading. Please reload this page.
1 parent 5a1de80 commit 2d694a5Copy full SHA for 2d694a5
1 file changed
doc/api/console.md
@@ -88,7 +88,7 @@ const errorOutput = fs.createWriteStream('./stderr.log');
88
// custom simple logger
89
constlogger=newConsole(output, errorOutput);
90
// use it like console
91
-var count =5;
+constcount=5;
92
logger.log('count: %d', count);
93
// in stdout.log: count 5
94
```
@@ -217,7 +217,7 @@ values similar to printf(3) (the arguments are all passed to
217
[`util.format()`][]).
218
219
```js
220
221
console.log('count: %d', count);
222
// Prints: count: 5, to stdout
223
console.log('count:', count);
@@ -248,7 +248,7 @@ prints the result to `stdout`:
248
249
250
console.time('100-elements');
251
-for (var i =0; i <100; i++) {
+for (let i =0; i <100; i++) {
252
;
253
}
254
console.timeEnd('100-elements');
0 commit comments