Strict Mode — “use strict” – Beau teaches JavaScript

  • Post comments:8 Comments

Strict mode in JavaScript tightens the rules for certain behaviors. You can execute JavaScript code in strict mode by using the “use strict” directive.

💻 Code:

🔗 Resource:

🐦 Beau Carnes on Twitter:

⭐JavaScript Tutorials Playlists⭐
▶JavaScript Basics:
▶Data Structures and Algorithms:
▶Design Patterns:
▶Clean Code:

We’re busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Join our community at
Read great tech articles at


This Post Has 8 Comments

  1. Unnamed

    then ES6 came in and says: screw you use strict!
    let: don't worry guys i got you back!
    const: also got your back guys!

  2. Aprime

    Can't you use window.hello in strict mode?

  3. Kintario

    Why do JavaScript courses don't mention that it should be mandatory to use "strict mode", why do IDE don't include this mode in js files by default and in fact why do browsers even allow execution of JavaScript without strict mode??? It literally helps so much to write a good quality code

Leave a Reply