17.11.2015 Views

JavaScript_Succinctly

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Make sure you understand that the head object is implied even when you don't explicitly<br />

include it, because the head object is the last stop in the scope chain.<br />

Notes<br />

Being explicit (e.g., window.alert() vs. alert()) costs a little bit more with regard to<br />

performance (how fast the code runs). It's faster if you rely on the scope chain alone<br />

and avoid explicitly referencing the head object even if you know the property you want<br />

is contained in the global scope.<br />

82

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!