1<!DOCTYPE html> 2<html> 3<head> 4<title>Console Number Format Specifiers on Symbols</title> 5<meta name="author" title="Dominic Farolino" href="mailto:domfarolino@gmail.com"> 6<meta name="assert" content="Console format specifiers on Symbols"> 7<link rel="help" href="https://console.spec.whatwg.org/#formatter"> 8</head> 9<body> 10<p>Open the console inside the developer tools. It should contain 15 entries, each of which are:</p> 11<p><code>NaN</code></p> 12 13<script> 14const methods = ["log", "dirxml", "trace", "group", "groupCollapsed"]; 15 16for (method of methods) { 17 console[method]("%i", Symbol.for("description")); 18 if (method == "group" || method == "groupCollapsed") console.groupEnd(); 19 console[method]("%d", Symbol.for("description")); 20 if (method == "group" || method == "groupCollapsed") console.groupEnd(); 21 console[method]("%f", Symbol.for("description")); 22 if (method == "group" || method == "groupCollapsed") console.groupEnd(); 23} 24</script> 25</body> 26</html> 27