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