Skip to content
Permalink
Browse files

api(console.count): add a spec for console.count w/o label

  • Loading branch information...
IgorMinar committed Jan 2, 2014
1 parent cc3a01a commit f6627358dafa3cd427d3d2a8570e7b519265f937
Showing with 23 additions and 1 deletion.
  1. +23 −1 api.md
24 api.md
@@ -52,7 +52,29 @@ test();
Login called for paul: 2
```

#### `console.debug(object [,object, ...])`

If no label is provided then the script url and line number of the `console.count` statement is used for associating the counter with `console.count` invocation.

In the following example count() is invoked without a label from two different functions.
```javascript
function test1() {
console.count();
}
function test2() {
console.count();
}
test1();
test2();
test1();
> : 1 test-script.js:3
: 1 test-script.js:7
: 2 test-script.js:3
```

#### `console.debug(object [,object, ...])`

This method is an alias for to [`console.log()`](#consolelogobject--object-).

0 comments on commit f662735

Please sign in to comment.
You can’t perform that action at this time.