We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5a58b commit 862fbc1Copy full SHA for 862fbc1
snippets/js.code-snippets
@@ -24,7 +24,7 @@
24
"console.log": {
25
"prefix": "_console",
26
"body": [
27
- "console.log(`%c ${data}`, 'font-size:50px; color: red;');"
+ "console.log(`%c Data :: ${data}`, `font-size:25px; color: #${Math.floor(Math.random() * 16777215).toString(16)};`);"
28
],
29
"description": "Logs a message to the browser console with custom formatting."
30
},
@@ -34,5 +34,12 @@
34
"console.table(data);"
35
36
37
+ },
38
+ "console.trace": {
39
+ "prefix": "_console.trace",
40
+ "body": [
41
+ "console.trace();"
42
+ ],
43
+ "description": "Trace where the function was called"
44
}
45
0 commit comments