Skip to content

Commit 7957a9f

Browse files
committed
Add warn and error snippets
Add the following snippets: warn -> console.warn(); error -> console.error();
1 parent 3853428 commit 7957a9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

snippets/language-javascript.cson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
'log':
5151
'prefix': 'log'
5252
'body': 'console.log($1);$0'
53+
'warn':
54+
'prefix': 'warn'
55+
'body': 'console.warn($1);$0'
56+
'error':
57+
'prefix': 'error'
58+
'body': 'console.error($1);$0'
5359
'setInterval function':
5460
'prefix': 'interval'
5561
'body': 'setInterval(${2:function () {\n\t$3\n}}, ${1:10});'

0 commit comments

Comments
 (0)