Skip to content

Commit

Permalink
doc: var -> const / let in the console.md
Browse files Browse the repository at this point in the history
PR-URL: #10451
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Feb 1, 2017
1 parent 31aa877 commit 70ea38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const errorOutput = fs.createWriteStream('./stderr.log');
// custom simple logger
const logger = new Console(output, errorOutput);
// use it like console
var count = 5;
const count = 5;
logger.log('count: %d', count);
// in stdout.log: count 5
```
Expand Down Expand Up @@ -217,7 +217,7 @@ values similar to printf(3) (the arguments are all passed to
[`util.format()`][]).

```js
var count = 5;
const count = 5;
console.log('count: %d', count);
// Prints: count: 5, to stdout
console.log('count:', count);
Expand Down Expand Up @@ -249,7 +249,7 @@ prints the result to stdout:

```js
console.time('100-elements');
for (var i = 0; i < 100; i++) {
for (let i = 0; i < 100; i++) {
;
}
console.timeEnd('100-elements');
Expand Down

0 comments on commit 70ea38f

Please sign in to comment.