Skip to content

Commit afd791a

Browse files
tejas-mnsadanandpai
authored andcommitted
Fixed major typos
1 parent 5a0d738 commit afd791a

10 files changed

Lines changed: 17 additions & 17 deletions

File tree

web/src/pages/challenges/async.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ callbackManager([asyncFunc1, asyncFunc2, asyncFunc3]);
220220

221221
**Notes**
222222

223-
3 asynchrounous functions are considered here, but the program should work for any number
223+
3 asynchronous functions are considered here, but the program should work for any number
224224

225225
---
226226

@@ -316,7 +316,7 @@ asyncFunc1()
316316
.then(asyncFunc2)
317317
.then(asyncFunc3)
318318
.catch(() => {
319-
console.log("Error occured in one of the async function");
319+
console.log("Error occurred in one of the async function");
320320
});
321321
```
322322

web/src/pages/challenges/collections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Though 1st solution is verbose compared to 2nd, but has good performance
274274

275275
### 11. Find the number of occurences of minimum value in the numbers list
276276

277-
- `filter` method can be used to fetch all the minimum values and we can get the count of those valuses
277+
- `filter` method can be used to fetch all the minimum values and we can get the count of those values
278278

279279
```js copy
280280
const min = Math.min(...arr);

web/src/pages/challenges/dom.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ document.querySelector(".my-class"); // element having a class 'my-class'
99

1010
**Notes**
1111

12-
Above selectors are used to select a first matching element reference even if mutliple matches be there
12+
Above selectors are used to select a first matching element reference even if multiple matches be there
1313

1414
**References**
1515

web/src/pages/challenges/functions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 1. Design a Calulator interface for 2 number inputs which can perform sum, difference, product and dividend whenever invoked on the same interface
1+
### 1. Design a Calculator interface for 2 number inputs which can perform sum, difference, product and dividend whenever invoked on the same interface
22

33
```js copy
44
// Example
@@ -412,7 +412,7 @@ function memoize(fn) {
412412
return function () {
413413
const key = JSON.stringify(arguments);
414414

415-
// if the caculations have already been done for inputs, return the value from cache
415+
// if the calculations have already been done for inputs, return the value from cache
416416
if (cache.has(key)) {
417417
return cache.get(key);
418418
} else {

web/src/pages/challenges/objects.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ obj.counter; // 3
282282
```
283283

284284
- The access to the property of the object can be configured through property `getter`
285-
- A separate private variable can be maintained track the value and getter on each access to increment and return the value
285+
- A separate private variable can be maintained to track the value and getter on each access to increment and return the value
286286

287287
```js copy
288288
function counterObject() {
@@ -445,7 +445,7 @@ emp.getSalary(); // 11000
445445

446446
**Notes**
447447

448-
Class in JavaScript is functionality to achieve class based model on top of prototype based programming model of JavaScript
448+
Class in JavaScript is a functionality to achieve class based model on top of prototype based programming model of JavaScript
449449

450450
**References**
451451

web/src/pages/challenges/primitives.mdx

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

115115
### 6. Write a program to reverse a given integer number
116116

117-
- The remainder of the number can be fetched and the number can be divided by 10 to remvoe the the digit in loop till number becomes 0
117+
- The remainder of the number can be fetched and the number can be divided by 10 to remove the digit in loop till number becomes 0
118118
- A simple approach to reverse a number could also be to convert it in to a string and then reverse it
119119

120120
```js copy
@@ -153,7 +153,7 @@ str.replaceAll(" ", "_");
153153

154154
**Notes**
155155

156-
`replace` is also an inbuilt String function on prototype which can be used to replace the 1st occurence of the string with another string
156+
`replace` is also an inbuilt String function on prototype which can be used to replace the 1st occurrence of the string with another string
157157

158158
**References**
159159

web/src/pages/concepts/async.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fetchData("https://reqbin.com/echo/get/json")
176176

177177
**Notes**
178178

179-
XHR reuqest is no more in use and all the modern browsers use `fetch` API which is based on promise
179+
XHR request is no more in use and all the modern browsers use `fetch` API which is based on promise
180180

181181
**References**
182182

@@ -243,7 +243,7 @@ controller.abort();
243243

244244
### 8. Show the working of async await work with promises
245245

246-
- `async` functions are asynchronous functions in which the asynchrous code can be executed in synchronous looking manner using `await`
246+
- `async` functions are asynchronous functions in which the asynchronous code can be executed in synchronous looking manner using `await`
247247
- `await` expects a promise and the execution will stop until the promise is resolved
248248
- If promise gets rejected, error is thrown with failure reason which can be handled using simple try-catch block
249249

web/src/pages/concepts/collections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const arr = [];
99
```
1010

1111
```js copy
12-
// consturctor form
12+
// constructor form
1313
const arr = new Array();
1414
```
1515

web/src/pages/concepts/functions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Array and object are used in the programs to contain multiple values
352352

353353
---
354354

355-
### 13. Write a function which can set default values to the parameters of function when an argument is not passed. Also show how to use exisiting parameters to set the value of another parameter
355+
### 13. Write a function which can set default values to the parameters of function when an argument is not passed. Also show how to use existing parameters to set the value of another parameter
356356

357357
- Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed
358358

web/src/pages/concepts/objects.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### 1. Show the different ways of creating an object
22

3-
- Object can be created using Object constuctor
3+
- Object can be created using Object constructor
44
- Object can also be created using Object literal form
55
- Object can be created using `new` keyword to constructor function
66
- Object can be created using Class
@@ -253,7 +253,7 @@ Object.defineProperty(obj, "prop", {
253253

254254
**Notes**
255255

256-
Except `value`, other accessort mentioned accept true or false
256+
Except `value`, other accessor mentioned accept true or false
257257

258258
**References**
259259

@@ -293,7 +293,7 @@ Object.isFrozen(obj); // true
293293

294294
### 11. Modify the given object so that it can be used inside a for...of loop
295295

296-
- Symbol iterator can be used to define the iterator on the object
296+
- `Symbol.iterator` can be used to define the iterator on the object
297297
- The values of the object can accessed with `for..of` the way we can do it for array
298298

299299
```js copy

0 commit comments

Comments
 (0)