'use strict';All javaScript should begin this way. It catches other problems besides typos.
Programming Tips - javaScript: How can I catch typos in variable names?
Date: 2015feb27
Language: javaScript
Q. javaScript: How can I catch typos in variable names?
A. Start scripts with: