Logo

Programming-Idioms

History of Idiom 59 > diff from v36 to v37

Edit summary for version 37 by programming-idioms.org:
New JS implementation by user [programming-idioms.org]

Version 36

2018-05-21, 22:55:24

Version 37

2018-05-27, 20:10:10

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
console.error(x, "is negative");
Doc URL
https://console.spec.whatwg.org/#error