Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

assert

Description

The assert of console for JS logs the data as an assertion failure when the condition is false.

Syntax

assert(condition, ...data)

Parameters

condition

A boolean value.

data

An any type.

Examples

1 · void

2 · condition · false

3 · condition · true

4 · data · single · false

5 · data · single · true

6 · data · single · true and false

7 · data · multiple · false

8 · data · multiple · true

9 · data · multiple · true and false

clear

count

countReset

debug

dir

dirxml

error

group

groupCollapsed

groupEnd

info

log

table

time

timeEnd

timeLog

trace

warn

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu