Skip to content

Commit 5fd638f

Browse files
committed
Fix typos
1 parent 059d90d commit 5fd638f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
3333
| ES2021 Or ES12 | June 2021 |
3434
| ES2022 Or ES13 | June 2022 |
3535
| ES2023 Or ES14 | June 2023 |
36+
| ES2024 Or ES15 | June 2024 |
3637

3738
### Table of Contents
3839

@@ -1623,7 +1624,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
16231624
**[⬆ Back to Top](#table-of-contents)**
16241625
16251626
3. ### String trimStart and trimEnd
1626-
In order to make consistency with padStart/padEnd, ES2019 provided the standard functions named as `trimStart` and `trimEnd` to trim white spaces on the beginning and ending of a string. However for web compatilibity(avoid any breakage) `trimLeft` and `trimRight` will be an alias for `trimStart` and `trimEnd` respectively.
1627+
In order to make consistency with padStart/padEnd, ES2019 provided the standard functions named as `trimStart` and `trimEnd` to trim white spaces on the beginning and ending of a string. However for web compatibility(avoid any breakage) `trimLeft` and `trimRight` will be an alias for `trimStart` and `trimEnd` respectively.
16271628
16281629
Let's see the usage with an example,
16291630
```js
@@ -1871,7 +1872,7 @@ Most of these features already supported by some browsers and try out with babel
18711872
**[⬆ Back to Top](#table-of-contents)**
18721873
18731874
3. ### Nullish Coalescing Operator
1874-
The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is `null` or `undefined`, and otherwise returns its left-hand side operand. This operator replaces `||` operator to provide default values if you treat empty value or '', 0 and NaN as valid values. This is because the logical OR(||) operator treats(empty value or '', 0 and NaN) as falsy values and returns the right operand value which is wrong in this case. Hence, this operator truely checks for `nullish` values instead `falsy` values.
1875+
The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is `null` or `undefined`, and otherwise returns its left-hand side operand. This operator replaces `||` operator to provide default values if you treat empty value or '', 0 and NaN as valid values. This is because the logical OR(||) operator treats(empty value or '', 0 and NaN) as falsy values and returns the right operand value which is wrong in this case. Hence, this operator truly checks for `nullish` values instead `falsy` values.
18751876
```js
18761877
let vehicle = {
18771878
car: {
@@ -2300,7 +2301,7 @@ Most of these features already supported by some browsers and try out with babel
23002301
23012302
Static fields and methods are applied to the class level and they can be accessed without an instance of a class. These fields and methods declared with `static` keyword
23022303
2303-
Let's define a employee class with static field and methods declated with `static` keyword.
2304+
Let's define a employee class with static field and methods declared with `static` keyword.
23042305
23052306
```javascript
23062307
class Employee{
@@ -2476,9 +2477,9 @@ Most of these features already supported by some browsers and try out with babel
24762477
```
24772478
24782479
2. ### Hashbang syntax
2479-
Hashbang(as known as shebang) grammer has been supported with a sequence of characters(#!) at the beginning of an executable script to define the interpreter for the program to run. In other words, this syntax is helpful to tell the operating system which interpreter to use while executing the script.
2480+
Hashbang(as known as shebang) grammar has been supported with a sequence of characters(#!) at the beginning of an executable script to define the interpreter for the program to run. In other words, this syntax is helpful to tell the operating system which interpreter to use while executing the script.
24802481
2481-
For example, the below javacript file will be executed in NodeJS interpreter from Unix commandline.
2482+
For example, the below javascript file will be executed in NodeJS interpreter from Unix commandline.
24822483
```javascript
24832484
#!/usr/bin/env node
24842485
'use strict';
@@ -2626,6 +2627,14 @@ Most of these features already supported by some browsers and try out with babel
26262627
26272628
The Temporal API is a modern API for working with dates and times, used to supersede the original Date API. It provides a more comprehensive and user-friendly way to handle date and time manipulation.
26282629
2630+
It contains the following core objects,
2631+
1. Temporal.PlainDate
2632+
2. Temporal.PlainTime
2633+
3. Temporal.PlainDateTime
2634+
4. Temporal.PlainYearMonth
2635+
5. Temporal.PlainMonthDay
2636+
6. Temporal.ZonedDateTime
2637+
26292638
3. ### Well formed unicode strings
26302639
Unicode strings are mainly used for representing a wide range of characters from different languages and symbols. In UTF-16, strings which contain lone surrogates(16-bit Code Unit) are considered as "malformed" or "not well formatted". These lone surrogates can be of two types,
26312640
@@ -2685,7 +2694,7 @@ Most of these features already supported by some browsers and try out with babel
26852694
```
26862695
If the promise is not fulfilled then it will lead to a 'time-out' status otherwise the status will always be 'ok' once the promise has been fulfilled.
26872696
2688-
Let's take a shared Int32Array. Here it waits asynchrously for position 0 and expects a result 0 waiting for 500ms.
2697+
Let's take a shared Int32Array. Here it waits asynchronously for position 0 and expects a result 0 waiting for 500ms.
26892698
26902699
```javascript
26912700
const arrayBuffer = new SharedArrayBuffer(1024);
@@ -2717,7 +2726,7 @@ Most of these features already supported by some browsers and try out with babel
27172726
promise.then(result => console.log(result)).catch(error => console.error(error));
27182727
```
27192728
2720-
In this constructor pattern, it is possile call the `resolve` and `reject` functions inside the promise constructor only. But if you want these functions outside of the promise constructor, you often have to write the following boilerplate code.
2729+
In this constructor pattern, it is possible call the `resolve` and `reject` functions inside the promise constructor only. But if you want these functions outside of the promise constructor, you often have to write the following boilerplate code.
27212730
27222731
```javascript
27232732
let resolve, reject;

0 commit comments

Comments
 (0)