Skip to content

Commit b347ae7

Browse files
committed
Spelling Mistakes
1 parent 991381a commit b347ae7

File tree

7 files changed

+62
-62
lines changed

7 files changed

+62
-62
lines changed

Ch 10 Network Request And Storing Data.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Fetch API
22
// The Fetch API provides a simple way to fetch resources (for example images, documents, or streams) over the internet
33

4-
// JavaScrript Can Be Used To Send And Retrieve Information From The Network When Needed (AJAX)
4+
// JavaScript Can Be Used To Send And Retrieve Information From The Network When Needed (AJAX)
55

6-
// AJAX Used Earliear -> Now JSON Is Widly Used
6+
// AJAX Used Earlier -> Now JSON Is Widely Used
77

8-
// AJAX -> Asychronous JavaScript And XML
8+
// AJAX -> Asynchronous JavaScript And XML
99

1010
// Fetch API
1111

@@ -38,7 +38,7 @@
3838

3939
// let res = fetch(url, {
4040
// header: {
41-
// Authentication: 'Secreat'
41+
// Authentication: 'Secret'
4242
// }
4343
// });
4444

@@ -59,7 +59,7 @@
5959
// Data Is The Actual Result Of The Request
6060

6161
// POST Request
62-
// To Make Posr Request, We Need To Use Fetch Options
62+
// To Make Post Request, We Need To Use Fetch Options
6363
// Method -> HTTP Method, E.g POST
6464
// Body -> The Request Body
6565

@@ -118,7 +118,7 @@
118118
// We Can Also Access Cookies Using document.cookie Property
119119
// alert(document.cookie) -> Contain Key Value Pairs Decoded
120120

121-
// Key Value Pair Are Seperated By Delimited By ; -> Key = Pair;
121+
// Key Value Pair Are Separated By Delimited By ; -> Key = Pair;
122122

123123
// Writing A Cookie
124124
// An Assignment To Document.cookie Is Treated Specially In A Way That Write Operation Doesn't Touch Other Cookie
@@ -138,7 +138,7 @@
138138

139139
// Encode URI Component -> This Function Encodes A Set Of Special Characters In A Way That The Component Can Be Decoded Using DecodeURI
140140

141-
// This Function Helps Keep The Valid Formating. It Is Used Like This
141+
// This Function Helps Keep The Valid Formatting. It Is Used Like This
142142

143143
// document.cookie = `${encodeURIComponent(key)}=${encodeURIComponent(value)}`
144144

Ch 11 Object Oriented Programing.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189

190190
// Class Child extends Parent
191191

192-
// Parent Class Is The Class From Which Other Class Inherits.
192+
// Parent Classes Is The Class From Which Other Class Inherits.
193193
// class Animal {
194194
// constructor(name, color) {
195195
// this.name = name
@@ -253,9 +253,9 @@
253253
// e.login()
254254
// e.requestLeaves(3)
255255

256-
// If We Create Our Own Implementation Of Run Method In Child Class, It Will Be Overridden.
256+
// If We Create Our Own Implimentstion Of Run Method In Child Class, It Will Be Overridden.
257257

258-
// Super Keyword
258+
// Super Kewword
259259
// Super Keyword Is Used To Call The Parent Class Constructor.
260260
// When We Override A Method In Child Class, We Use Super Keyword To Call The Parent Class Method.
261261

@@ -351,7 +351,7 @@
351351

352352
// j = new Animal("jack")
353353
// j.walk()
354-
// console.log(j.capitalize("this")) // --- > this doesn't work
354+
// console.log(j.capitalize("thisa")) // --- > this doesnt work
355355

356356
// Getters And Setters
357357

Ch 12 Advanced JavaScript.js

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

154154
// Lexical Environment -> The Environment Of The Function -> Mere Pass Nahi He To Mere Pass Ka Environment Me Ase Check Karega
155155

156-
// Arrow Funcion
156+
// Arrow Function
157157

158158
// const sayHello = name => {
159159
// console.log("greeting" + " " + name)
@@ -219,7 +219,7 @@
219219

220220
// console.log(simpleInterest(100, 5, 1))
221221

222-
// Regex Expression Or Regula Expression
222+
// Regex Expression Or Regular Expression
223223
// https://regexr.com/
224224
// const regex = /(Harry){2}/gi
225225
// const text = "Harryharry is a very very nice awesome nice very boy"

Ch-10-Network-Request-And-Storing-Data/script.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Fetch API
22
// The Fetch API provides a simple way to fetch resources (for example images, documents, or streams) over the internet
33

4-
// JavaScrript Can Be Used To Send And Retrieve Information From The Network When Needed (AJAX)
4+
// JavaScript Can Be Used To Send And Retrieve Information From The Network When Needed (AJAX)
55

6-
// AJAX Used Earliear -> Now JSON Is Widly Used
6+
// AJAX Used Earlier -> Now JSON Is Widely Used
77

8-
// AJAX -> Asychronous JavaScript And XML
8+
// AJAX -> Asynchronous JavaScript And XML
99

1010
// Fetch API
1111

@@ -38,7 +38,7 @@
3838

3939
// let res = fetch(url, {
4040
// header: {
41-
// Authentication: 'Secreat'
41+
// Authentication: 'Secret'
4242
// }
4343
// });
4444

@@ -59,7 +59,7 @@
5959
// Data Is The Actual Result Of The Request
6060

6161
// POST Request
62-
// To Make Posr Request, We Need To Use Fetch Options
62+
// To Make Post Request, We Need To Use Fetch Options
6363
// Method -> HTTP Method, E.g POST
6464
// Body -> The Request Body
6565

@@ -118,7 +118,7 @@
118118
// We Can Also Access Cookies Using document.cookie Property
119119
// alert(document.cookie) -> Contain Key Value Pairs Decoded
120120

121-
// Key Value Pair Are Seperated By Delimited By ; -> Key = Pair;
121+
// Key Value Pair Are Separated By Delimited By ; -> Key = Pair;
122122

123123
// Writing A Cookie
124124
// An Assignment To Document.cookie Is Treated Specially In A Way That Write Operation Doesn't Touch Other Cookie
@@ -138,7 +138,7 @@
138138

139139
// Encode URI Component -> This Function Encodes A Set Of Special Characters In A Way That The Component Can Be Decoded Using DecodeURI
140140

141-
// This Function Helps Keep The Valid Formating. It Is Used Like This
141+
// This Function Helps Keep The Valid Formatting. It Is Used Like This
142142

143143
// document.cookie = `${encodeURIComponent(key)}=${encodeURIComponent(value)}`
144144

Ch-11-Object-Oriented-Programing/script.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// Classes And Objects
3737

38-
// In OOP A Class Is An Extensible Program Code Template For Creating Objects, Providing Intial Value For State (Member Variables) And Implementation Of Behavior (Member Functions)
38+
// In OOP A Class Is An Extensible Program Code Template For Creating Objects, Providing Initial Value For State (Member Variables) And Implementation Of Behavior (Member Functions)
3939

4040
// Syntax:
4141
// class ClassName {
@@ -82,7 +82,7 @@
8282
// We Can Than Use New Class() To Create An Object
8383

8484
// Constructor Method
85-
// A Constructor Is A Special Method Which Is Automatically Called When An Object Is Created. -> Its Used To Initiailise The Object.
85+
// A Constructor Is A Special Method Which Is Automatically Called When An Object Is Created. -> Its Used To Initialize The Object.
8686

8787
// Old
8888

@@ -148,7 +148,7 @@
148148
// harryForm.preview()
149149

150150

151-
// Class Inhertance
151+
// Class Inheritance
152152

153153
// Class Inheritance Is A Way For One Class To Inherit All The Methods And Properties From Another Class. In JavaScript, It Is Done By Using Extends Keyword.
154154

@@ -189,7 +189,7 @@
189189

190190
// Class Child extends Parent
191191

192-
// Parent Classe Is The Class From Which Other Class Inherits.
192+
// Parent Classes Is The Class From Which Other Class Inherits.
193193
// class Animal {
194194
// constructor(name, color) {
195195
// this.name = name
@@ -262,9 +262,9 @@
262262
// super(a,b) -> Call Parent Class Constructor
263263

264264

265-
// Overridding Constructor
265+
// Overriding Constructor
266266

267-
// With A Constructor, Things Are Bit Tricky/ Different. According To The Specifications , If A Class Extendes Another Class And Has No Constructor. Than The Child Class Will Have A Constructor Automatically. -> By Default Its Generated By The JS Engine.
267+
// With A Constructor, Things Are Bit Tricky/ Different. According To The Specifications , If A Class Extends Another Class And Has No Constructor. Than The Child Class Will Have A Constructor Automatically. -> By Default Its Generated By The JS Engine.
268268

269269
// Default One
270270
// constructor(...args){ ---> If there is no constructor in the child class, this is created automatically
@@ -323,7 +323,7 @@
323323

324324
// Static Method Are Used To Implement Function That Belong To A Class As A Whole. And Not To Any Particular Object.
325325

326-
// We Can Assign Singal Static Method;
326+
// We Can Assign Single Static Method;
327327

328328
// Syntax:
329329

@@ -407,7 +407,7 @@
407407
// console.log(c instanceof Animal)
408408

409409

410-
// IntanceOf Operator
410+
// InstanceOf Operator
411411
// InstanceOf Operator Is Used To Check If An Object Is An Instance Of A Class.
412412
// Object It Belongs To Certain Class Or Not?
413413
// It Return True If Obj Belongs To The Class Or Any Other Class Inherited From It.

Ch-12-Advanced-JavaScript/script.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@
148148
// let a = returnFunc()
149149
// a()
150150

151-
// Closure -> Function + Its Lexicale Environment
151+
// Closure -> Function + Its Lexical Environment
152152
// Reference Milta He
153153

154-
// Lexicale Environment -> The Environment Of The Function -> Mere Pass Nahi He To Mere Pass Ka Environment Me Ase Check Karega
154+
// Lexical Environment -> The Environment Of The Function -> Mere Pass Nahi He To Mere Pass Ka Environment Me Ase Check Karega
155155

156-
// Arrow Funcion
156+
// Arrow Function
157157

158158
// const sayHello = name => {
159159
// console.log("greeting" + " " + name)
@@ -177,7 +177,7 @@
177177
// console.log(x.name, x.exp)
178178
// x.show()
179179

180-
// Arrow Function Uses Lexicale This
180+
// Arrow Function Uses Lexical This
181181

182182
// Practice Set
183183

@@ -219,7 +219,7 @@
219219

220220
// console.log(simpleInterest(100, 5, 1))
221221

222-
// Regex Expression Or Regula Expression
222+
// Regex Expression Or Regular Expression
223223
// https://regexr.com/
224224
// const regex = /(Harry){2}/gi
225225
// const text = "Harryharry is a very very nice awesome nice very boy"
@@ -230,7 +230,7 @@
230230
// Asynchronous CallBack
231231
// Sometimes the JavaScript code can take a lot of time and this can block the
232232
// page re render
233-
// JavaScript has asynchronous callbacks for non blocking behaviour
233+
// JavaScript has asynchronous callbacks for non blocking behavior
234234
// JavaScript runtime can do only one thing at a time
235235
// Browser gives us other things which work along with the runtime like Web
236236
// APIs.

0 commit comments

Comments
 (0)