Skip to content

Commit c4abaed

Browse files
committed
Spelling Mistakes
1 parent 95e6c28 commit c4abaed

9 files changed

+55
-55
lines changed

Ch 11 Object Oriented Programing.js

Lines changed: 11 additions & 11 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 Class Is The Class From Which Other Class Inherits.
193193
// class Animal {
194194
// constructor(name, color) {
195195
// this.name = name
@@ -253,18 +253,18 @@
253253
// e.login()
254254
// e.requestLeaves(3)
255255

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

258-
// Super Kewword
258+
// Super Keyword
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

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

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

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

356356
// Getters And Setters
357357

@@ -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.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@
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

156156
// Arrow Funcion
157157

@@ -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

@@ -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.

Ch 5 Array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ console.log(typeof fruits) // Object
265265
// console.log(Array.isArray([])); // Output: true
266266
// console.log(Array.isArray({})); // Output: false
267267

268-
.
268+
269269
// 18. join()
270270

271271
// Joins all elements of an array into a string.

Ch 6 JS In Browser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Element Tab -> All Element
2-
// Onsole Tab -> All The Error Plus Logs
2+
// console Tab -> All The Error Plus Logs
33
// Network Tab -> All The Network Request And Requirement
44

5-
// External File For Js -> File Cache Ho Jati he So Website Fast WOrk Karti He
5+
// External File For Js -> File Cache Ho Jati he So Website Fast Work Karti He
66
// We Can Add Js In Script Tag Also
77
// <script src="script.js"></script>
88
// <script></script>
@@ -48,7 +48,7 @@
4848
// document.write("Please Allow Me To Write")
4949
// }
5050

51-
// This Will Stop Screen Exicution Thats Why Not Suggested To Use That In User Side Plus Look Like Olde Vintage Website So -> Use In Admin Panel
51+
// This Will Stop Screen Execution Thats Why Not Suggested To Use That In User Side Plus Look Like Old Vintage Website So -> Use In Admin Panel
5252

5353
// BOM And DOM
5454

@@ -57,7 +57,7 @@
5757
console.log(window)
5858
// window.console.log(window) -> Same Work Above
5959

60-
// window is global object under that -> Bom , Dom , Js Core Feture Lies
60+
// window is global object under that -> Bom , Dom , Js Core Feature Lies
6161

6262
// Apke Pure HTML Page ko Document Represent Karta Hai -> Pure Page Ka Object Banke Usko Document Name De Diya Gaya He
6363
console.log(document)

Ch 6 JavaScript In Browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464

6565
// The console object in JavaScript provides a set of methods that allow developers to interact with the browser's console. These methods are useful for logging messages, debugging code, and monitoring the execution of JavaScript code. Here are some commonly used methods of the console object along with examples:
6666

67-
// console.log(conslole) -> List All Console Method
67+
// console.log(console) -> List All Console Method
6868

69-
// External JS is Better To Use -> Sepration Of Concerns & Browser Caching -> Browser Save That FIle SO We Not Load Again It
69+
// External JS is Better To Use -> Separation Of Concerns & Browser Caching -> Browser Save That FIle SO We Not Load Again It
7070

7171
// log(): Logs a message to the console.
7272

Ch 7 DOM Part 1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ console.log(`Darshan\'s DOM Notes`);
286286

287287
// Auto Correction ->
288288

289-
// <span>This is me</div> -> Browser will autocorrect this
289+
// <span>This is me</div> -> Browser will auto correct this
290290

291291
// Access HTML Element
292292

@@ -360,7 +360,7 @@ console.log(`Darshan\'s DOM Notes`);
360360
// querySelectorAll methods, which allow you to select elements
361361
// using CSS selectors. The querySelector method returns the first
362362
// element that matches the selector, while querySelectorAll
363-
// returns a collection of allmatching elements. like this:
363+
// returns a collection of all matching elements. like this:
364364
// HTML
365365
// <p class="mySelector">This is a paragraph.</p>
366366

Ch 8 Event & Other DOM Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Event Handling
44
// Now, let's discuss Event Handling using Javascript:
55
// Event Handling:
6-
// Event handlling in JavaScript with the HTML DOM
6+
// Event handling in JavaScript with the HTML DOM
77
// (Document Object Model) allows you to respond
88
// to user interactions or other events that occur on
99
// a webpage

Ch 8 Events And Other DOM Properties.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@
213213

214214
// btn.addEventListener('click', y)
215215

216-
// let a = prompt("What is Your Favourite Number?");
216+
// let a = prompt("What is Your Favorite Number?");
217217
// if (a == "2") {
218218
// btn.removeEventListener('click', x)
219219
// }
220220

221-
// For This Work FUnction OBject Same Hona Cahiye -> Means That We Want to Remove Function y thatn We Must Pass The Function y So That Function Object Can Removed
221+
// For This Work FUnction OBject Same Hona Cahiye -> Means That We Want to Remove Function y than We Must Pass The Function y So That Function Object Can Removed
222222

223223

224224
// Event Object
@@ -236,11 +236,11 @@
236236

237237
// Practice Set
238238

239-
// Q1 -> Create A Website Which Stores Bookmarks Of Your Favourite Website Using href
239+
// Q1 -> Create A Website Which Stores Bookmarks Of Your Favorite Website Using href
240240
// Ans: Ans On HTML File
241241
// Q2 -> Write A Program To Show Different Alerts When Different Buttons Are Clicked
242242
// Ans: Ans On HTML File
243-
// Q3 -> Create A Website Which Stores Bookmarks Of Your Favourite Website Using Event Listeners
243+
// Q3 -> Create A Website Which Stores Bookmarks Of Your Favorite Website Using Event Listeners
244244
// document.getElementById("google").addEventListener("click", function() {
245245
// window.location = "https://www.google.com";
246246
// win.focus();
@@ -259,7 +259,7 @@
259259
// })
260260

261261

262-
// Q4 -> Write A JavaScript Program To Keep fetcing contents of a website (Every 5 Seconds)
262+
// Q4 -> Write A JavaScript Program To Keep fetching contents of a website (Every 5 Seconds)
263263

264264
// setInterval(async function() {
265265
// let url = "https://jsonplaceholder.typicode.com/todos/1"

0 commit comments

Comments
 (0)