3 ${1:class_name}.prototype.${2:method_name} =
4 function(${3:first_argument}) {
9 function ${1:function_name} (${2:argument}) {
14 function(${1}) {${2}};
17 if (${1:true}) {${2}};
22 # tertiary conditional
24 ${1:/* condition */} ? ${2:a} : ${3:b}
27 switch(${1:expression}) {
43 for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
46 # for (...) {...} (Improved Native For-Loop)
48 for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) {
53 while (${1:/* condition */}) {
60 } while (${1:/* condition */});
63 ${1:method_name}: function(${2:attribute}) {
68 setTimeout(function() {${3}}${2}, ${1:10};
71 getElementsBy${1:TagName}('${2}')${3}
74 getElementBy${1:Id}('${2}')${3}