Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 97bd0b0 + 68fd837 commit 616dca2Copy full SHA for 616dca2
general-patterns/single-var-pattern.html
@@ -17,20 +17,20 @@
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
0 commit comments