Everybody hates errors -- whether it's in a PhoneGap app or another framework. Unfortunately, errors are something we can't neglect. We must track and handle errors in-spite of the testing that our app would have gone through tested our app a lot.
The fifth edition of the ECMAScript specification introduced Strict Mode. Strict Mode prevents certain actions from being taken and thrown out as errors. It protects you from the most common and egregious aspects of the language. This is the primary advantage.