Skip to content

Commit 07a5658

Browse files
refactor: directive
1 parent 191b0d0 commit 07a5658

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

3_directive/use_strict.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"use strict";
1414

1515
// Example
16-
// Strict mode example
1716
function sum(a, b) {
1817
return a + b;
1918
}
@@ -28,4 +27,4 @@ console.log(sum(1, "2")); // This will throw a TypeError in strict mode
2827
// - Use the use strict directive to enable strict mode in your JavaScript code.
2928
// - Use strict mode to catch common coding errors and enforce best practices.
3029
// - Use strict mode when working on large projects or collaborating with others to ensure consistent code quality.
31-
// - Use strict mode when you want to write modern JavaScript code that leverages new features and best practices
30+
// - Use strict mode when you want to write modern JavaScript code that leverages new features and best practices.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- Instructor: [Hitesh Choudhary](https://github.com/hiteshchoudhary)
44
- YouTube Channel: [Chai Aur Code](https://www.youtube.com/@chaiaurcode)
5-
- React Playlist: [Chai Aur JavaScript](https://youtube.com/playlist?list=PLu71SKxNbfoBuX3f4EOACle2y-tRC5Q37&si=z4Qr3tOcQ2Qek2Yx)
5+
- JavaScript Playlist: [Chai Aur JavaScript](https://youtube.com/playlist?list=PLu71SKxNbfoBuX3f4EOACle2y-tRC5Q37&si=z4Qr3tOcQ2Qek2Yx)
66

77
# Table Of Content
88

@@ -194,4 +194,4 @@ Hoisting
194194
<!-- OOP -->
195195

196196
1. Literal Object
197-
2. Constructor Function
197+
2. Constructor Function

0 commit comments

Comments
 (0)