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
// 2.C.1.1
// Functions with callbacks
foo(function() {
// Note there is no extra space between the first paren
// of the executing function call and the word "function"
});
// Function accepting an array, no space
foo([ "alpha", "beta" ]);
// 2.C.1.2
// Function accepting an object, no space
foo({
a: "alpha",
b: "beta"
});
// Single argument string literal, no space
foo("bar");
// Inner grouping parens, no space
if ( !("foo" in obj) ) {
}
The text was updated successfully, but these errors were encountered:
我比较喜欢调用的时候参数与左右括号之间带空格,但是在以下几种case的时候没有空格。之前很多人都觉得这些规则太复杂,不知道大家怎么看。
The text was updated successfully, but these errors were encountered: