Right after the paragraph that starts with "Other examples where the compiler reordering could create observable side effects", there is the following code inside a codeblock:
function foo() {
console.log( b );
return 1;
}
var a, b, c;
// ES5.1 getter literal syntax
c = {
get bar() {
console.log( a );
return 1;
}
};
a = 10;
b = 30;
a += foo(); // 30
b += c.bar; // 11
console.log( a + b ); // 42
https://github.com/getify/You-Dont-Know-JS/blob/master/async%20%26%20performance/ch1.md
Right after the paragraph that starts with "Other examples where the compiler reordering could create observable side effects", there is the following code inside a codeblock:
I beleive lines 18 and 19 should be: