api.console.substitution_strings

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 1 on 2008-12-11 Note: In version 28, if a negative value is passed to %d, it will be rounded down to the closest negative integer, so -0.1 becomes -1.

In Chrome Android version 18 on 2012-06-27 Note: In version 28, if a negative value is passed to %d, it will be rounded down to the closest negative integer, so -0.1 becomes -1.

In Deno version 1.0 on 2020-05-13 Note: Before Deno 1.4, %c is not supported. %c only supports CSS properties color, background-color, font-weight, font-style, text-decoration-color, and text-decoration-line.

In Edge version 12 on 2015-07-29 Note: Before Edge 79, %c is not supported. Before Edge 79, %d outputs a 0 if the specified value isn't a number.

In Firefox version 9 on 2011-12-20

In Firefox for Android version 9 on 2011-12-21

In Internet Explorer version 10 on 2012-10-26 Note: %c is not supported. %d outputs a 0 if the specified value isn't a number.

In Node.js version 0.10.0 on 2013-03-11

In Quest Browser version 5.0 on undefined Note: In version 5.0, if a negative value is passed to %d, it will be rounded down to the closest negative integer, so -0.1 becomes -1.

In Opera version 15 on 2013-07-02

In Opera Android version 14 on 2013-05-21

In Safari version 3 on 2007-10-26

In Safari on iOS version 1 on 2007-06-29

In Samsung Internet version 1.0 on 2013-04-27 Note: In Samsung Internet 1.5, if a negative value is passed to %d, it will be rounded down to the closest negative integer, so -0.1 becomes -1.

In WebView Android version 4.4 on 2013-12-09 Note: In version 4.4, if a negative value is passed to %d, it will be rounded down to the closest negative integer, so -0.1 becomes -1.

In WebView on iOS version 1 on 2007-06-29