Here are some key benefits of strict mode: Makes debugging easier. The trouble is the larger you grow a languages surface area then the harder it becomes to learn and use correctly, more the chance for errors and undefined behaviour. Using the Console to Find Syntax and Other Code Errors In most coding projects, errors usually consist of syntax, logical, or data input errors. have a peek here Right-click on a page element and select Inspect Use the keyboard shortcuts Ctrl+Shift+I (Windows) or Cmd+Opt+I (Mac) Discover the Panels Device Mode Use the Device Mode to build fully responsive, mobile-first
Have a look at Chrome Developer Tools.
The reason you get the above error is because, when you invoke setTimeout(), you are actually invoking window.setTimeout(). Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in share|improve this answer edited Jul 18 '12 at 3:03 Peter Mortensen 10.4k1372108 answered Jun 12 '09 at 18:59 Tom Hubbard 8,19584173 add a comment| up vote 7 down vote Although alert(msg); It's not about where the variable pointing to the function is declared, it's about how it's called.
Pause execution, but only if... in the Watch tab and type in a variable name. The options are shown in the following table.