Skip to content

Commit

Permalink
modified some grammar mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
hitomipupil committed Dec 27, 2024
1 parent dcb147a commit 25473de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/javascript/concepts/strict-mode/strict-mode.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Title: 'Strict Mode'
Description: 'The strict mode in JavaScript is a way to make the language follow stricter rules. It helps prevent errors and makes the code more predictable by restricting certain behaviors that can lead to problems.'
Description: 'Strict mode in JavaScript is a way to make the language follow stricter rules. It helps prevent errors and makes the code more predictable by restricting certain behaviors that can lead to problems.'
Subjects:
- 'Web Development'
- 'Computer Science'
Expand All @@ -11,20 +11,20 @@ CatalogContent:
- 'paths/front-end-engineer-career-path'
---

The **strict mode** in JavaScript is a way to make the language follow stricter rules. It helps prevent errors and makes the code more predictable by restricting certain behaviors that can lead to problems.
**Strict mode** in JavaScript is a way to make the language follow stricter rules. It helps prevent errors and makes the code more predictable by restricting certain behaviors that can lead to problems.

## Syntax

`Strict mode` can be enabled for an entire code by adding "use strict"; at the very beginning of the script.
`Strict mode` can be enabled for an entire file by adding "use strict"; at the very beginning of the script.

```pseudo
```codebyte/javascript
"use strict";
// All code here runs in strict mode
```

`Strict mode` can also be enabled within a specific function, which will only affect the code inside that function.

```pseudo
```codebyte/javascript
function example() {
"use strict";
// Only this function's code runs in strict mode
Expand Down

0 comments on commit 25473de

Please sign in to comment.