Home > Web Front-end > JS Tutorial > Js in bits - &#use strict&#)

Js in bits - &#use strict&#)

Mary-Kate Olsen
Release: 2025-01-04 11:57:34
Original
708 people have browsed it

Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.

'use strict'

Js is backwards compatible
The old code never breaks as they are not removed after all these years.

Js in bits -

Problem: Because of this any bugs introduced at the start are still present today.

Js in bits -

Solution: 'use strict'
It will result in error for old bugs.

Js in bits -

Using 'use strict' at the start of .js file or start of function makes the rest of the code safe.

Js in bits -

Leave y'r thoughts....

The above is the detailed content of Js in bits - &#use strict&#). For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template