How Can You Tell if a Browser Supports Javascript Strict Mode?

By: Dusty Arlia
Published on Wednesday, May 8, 2013, 06:58 AM
Last Updated on Friday, July 10, 2015 at 3:07 PM
Total Updates: 2

Only JavaScript interpreters implementing the ECMAScript 5 standard support strict mode. To test for strict mode support, insert this code into the beginning of your script:

var supports_strict_mode = (function() {"use strict"; return this === undefined}())}