There was an error while loading. Please reload this page.
1 parent 31aa877 commit 70ea38fCopy full SHA for 70ea38f
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);
@@ -249,7 +249,7 @@ prints the result to stdout:
249
250
251
console.time('100-elements');
252
-for (var i =0; i <100; i++) {
+for (let i =0; i <100; i++) {
253
;
254
}
255
console.timeEnd('100-elements');
0 commit comments