Baseline Widely DOM API
api.console.substitution_strings
Granular MDN Browser Compat Data support history across 16 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Safari 3
2007-10-26
Core-3 Stability
1,516d (4.2y)
Last: Firefox (2011-12-20)
Baseline Feature
Widely
Console
Browser Support Timeline
Notes (10)
Chrome, Chr And: 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.Edge: Before Edge 79,%c is not supported.Edge: Before Edge 79, %d outputs a 0 if the specified value isn't a number.WV And: 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.Samsung: In Samsung Browser 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.Deno: Before Deno 1.4, %c is not supported.Deno: %c only supports CSS properties color, background-color, font-weight, font-style, text-decoration-color, and text-decoration-line.Quest: 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.IE: %c is not supported.IE: %d outputs a 0 if the specified value isn't a number.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 1 | 2008-12-11 | Supported |
| Firefox | desktop | 9 | 2011-12-20 | Supported |
| Safari | desktop | 3 | 2007-10-26 | Supported |
| Edge | desktop | 12 | 2015-07-29 | Supported |
| Chrome Android | mobile | 18 | 2012-06-27 | Supported |
| Firefox for Android | mobile | 9 | 2011-12-21 | Supported |
| Safari on iOS | mobile | 1 | 2007-06-29 | Supported |
| WebView Android | mobile | 4.4 | 2013-12-09 | Supported |
| WebView on iOS | mobile | 1 | 2007-06-29 | Supported |
| Samsung Browser | mobile | 1.0 | 2013-04-27 | Supported |
| Opera | desktop | 15 | 2013-07-02 | Supported |
| Opera Android | mobile | 14 | 2013-05-21 | Supported |
| Deno | server | 1.0 | 2020-05-13 | Supported |
| Node.js | server | 0.10.0 | 2013-03-11 | Supported |
| Bun | server | — | — | — |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | 10 | 2012-10-26 | Supported |