3

In spite of the use of use strict i want know how use strict works internally. who controls the behavior of the use strict? Is it a browser or JavaScript framework who takes care of Strict mode?

Jashwant
29.2k16 gold badges77 silver badges110 bronze badges
asked Jan 26, 2014 at 5:08
4
  • 1
    "Is it a browser or JavaScript framework who takes care of Strict mode?" - How could it be anything other than the browser? "use strict" changes the way certain fundamental parts of the language work, so... Commented Jan 26, 2014 at 5:12
  • 3
    @nnnnnn This may be obvious to you an I, but if it was obvious to the person asking, they wouldn't have asked the question. Commented Jan 26, 2014 at 5:12
  • You'll find the MDN entry informative. There's also some info in the ECMAScript 5 spec. Commented Jan 26, 2014 at 5:14
  • 1
    @Brad - I was hoping to prompt the OP to think it through. Also, there are any number of articles about strict mode - surely reading a couple of those and not seeing "You will need framework X to use strict mode" mentioned is a clue... Commented Jan 26, 2014 at 5:14

1 Answer 1

4

The JavaScript/ECMAScript engine within the browser itself is what takes care of interpreting this directive. This is a feature of ECMAScript 5.

answered Jan 26, 2014 at 5:11
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.