Categories
JavaScript Answers

How to force strict mode in Node.js?

Spread the love

To force strict mode in Node.js, we use the 'use strict' directive.

For instance, we write

"use strict";

to our JavaScript files to enable strict mode.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *