You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In explanations for certain patterns, other anti-patterns are often used. I.E. in the explanation code for the "Single var pattern", the patterns for "Function Declarations" and "Access to the Global Object" are both ignored:
function updateElement() {
var el = document.getElementById("result")
, style = el.style;
// do something with el and style...
}
Shouldn't all patterns be used consistently, with only changing the focus example by example?
The text was updated successfully, but these errors were encountered:
In explanations for certain patterns, other anti-patterns are often used. I.E. in the explanation code for the "Single var pattern", the patterns for "Function Declarations" and "Access to the Global Object" are both ignored:
function updateElement() {
var el = document.getElementById("result")
, style = el.style;
// do something with el and style...
}
Shouldn't all patterns be used consistently, with only changing the focus example by example?
The text was updated successfully, but these errors were encountered: