We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb7570 commit 68fd837Copy full SHA for 68fd837
general-patterns/single-var-pattern.html
@@ -17,25 +17,25 @@
17
* 4. Is less code (to type and to transfer over the wire)
18
*/
19
20
-functionfunc(){
21
-vara=1,
22
-b=2,
23
-sum=a+b,
24
-myobject={},
25
-i,
26
-j;
+functionfunc(){
+vara=1
+,b=2
+,sum=a+b
+,myobject={}
+,i
+j;
27
28
-// function body...
29
-}
+// function body...
+}
30
31
functionupdateElement(){
32
-varel=document.getElementById("result"),
33
-style=el.style;
+varel=document.getElementById("result")
+,style=el.style;
34
// do something with el and style...
35
}
36
37
// References
38
// http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/
39
</script>
40
</body>
41
-</html>
+</html>
0 commit comments