Skip to content

Commit

Permalink
doc: console example improvement
Browse files Browse the repository at this point in the history
Reviewed-by: Trevor Norris <[email protected]>
Reviewed-by: Fedor Indutny <[email protected]>
  • Loading branch information
guisouza authored and trevnorris committed Sep 17, 2014
1 parent 468fb54 commit 378d972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/console.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ should worry about unless you log huge amounts of data.
Prints to stdout with newline. This function can take multiple arguments in a
`printf()`-like way. Example:

var count = 5;
console.log('count: %d', count);
// prints 'count: 5'

If formatting elements are not found in the first string then `util.inspect`
is used on each argument. See [util.format()][] for more information.
Expand Down Expand Up @@ -73,6 +75,7 @@ Finish timer, record output. Example:
;
}
console.timeEnd('100-elements');
// prints 100-elements: 262ms

## console.trace(message, [...])

Expand Down

0 comments on commit 378d972

Please sign in to comment.