We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb7570 commit 68fd837Copy full SHA for 68fd837
1 file changed
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
- function func() {
21
- var a = 1,
22
- b = 2,
23
- sum = a + b,
24
- myobject = {},
25
- i,
26
- j;
+ function func() {
+ var a = 1
+ , b = 2
+ , sum = a + b
+ , myobject = {}
+ , i
+ j;
27
28
- // function body...
29
- }
+ // function body...
+ }
30
31
function updateElement() {
32
- var el = document.getElementById("result"),
33
- style = el.style;
+ var el = 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