• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<html>
3<head>
4<title>Console String Format Specifier 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 five entries, each of which are:</p>
11<p><code>Symbol(description)</code></p>
12
13<script>
14console.log("%s", Symbol.for("description"));
15console.dirxml("%s", Symbol.for("description"));
16console.trace("%s", Symbol.for("description"));
17console.group("%s", Symbol.for("description"));
18console.groupEnd();
19console.groupCollapsed("%s", Symbol.for("description"));
20console.groupEnd();
21</script>
22</body>
23</html>
24