We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8598ab8 commit 4cee226Copy full SHA for 4cee226
doc/api/console.md
@@ -153,6 +153,7 @@ changes:
153
* `...message` {any} All arguments besides `value` are used as error message.
154
155
A simple assertion test that verifies whether `value` is truthy. If it is not,
156
+or `value` is not passed,
157
`Assertion failed` is logged. If provided, the error `message` is formatted
158
using [`util.format()`][] by passing along all message arguments. The output is
159
used as the error message.
@@ -162,6 +163,8 @@ console.assert(true, 'does nothing');
162
163
// OK
164
console.assert(false, 'Whoops %s work', 'didn\'t');
165
// Assertion failed: Whoops didn't work
166
+console.assert();
167
+// Assertion failed
168
```
169
170
Calling `console.assert()` with a falsy assertion will only cause the `message`
0 commit comments