Skip to content

Commit c3b5dc1

Browse files
authored
Merge pull request #3004 from OmerBaddour/master
minor fixes
2 parents 7febbb9 + 576005b commit c3b5dc1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

1-js/05-data-types/02-number/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In modern JavaScript, there are two types of numbers:
44

55
1. Regular numbers in JavaScript are stored in 64-bit format [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754-2008_revision), also known as "double precision floating point numbers". These are numbers that we're using most of the time, and we'll talk about them in this chapter.
66

7-
2. BigInt numbers, to represent integers of arbitrary length. They are sometimes needed, because a regular number can't safely exceed <code>2<sup>53</sup></code> or be less than <code>-2<sup>53</sup></code>. As bigints are used in few special areas, we devote them a special chapter <info:bigint>.
7+
2. BigInt numbers represent integers of arbitrary length. They are sometimes needed because a regular number can't safely exceed <code>2<sup>53</sup></code> or be less than <code>-2<sup>53</sup></code>. As bigints are used in few special areas, we devote them a special chapter <info:bigint>.
88

99
So here we'll talk about regular numbers. Let's expand our knowledge of them.
1010

@@ -308,7 +308,7 @@ They belong to the type `number`, but are not "normal" numbers, so there are spe
308308
alert( isNaN("str") ); // true
309309
```
310310

311-
But do we need this function? Can't we just use the comparison `=== NaN`? Sorry, but the answer is no. The value `NaN` is unique in that it does not equal anything, including itself:
311+
But do we need this function? Can't we just use the comparison `=== NaN`? Unfortunately not. The value `NaN` is unique in that it does not equal anything, including itself:
312312

313313
```js run
314314
alert( NaN === NaN ); // false
@@ -402,7 +402,7 @@ A few examples:
402402
alert( Math.random() ); // ... (any random numbers)
403403
```
404404

405-
`Math.max(a, b, c...)` / `Math.min(a, b, c...)`
405+
`Math.max(a, b, c...)` and `Math.min(a, b, c...)`
406406
: Returns the greatest/smallest from the arbitrary number of arguments.
407407

408408
```js run

1-js/05-data-types/04-array/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The "trailing comma" style makes it easier to insert/remove items, because all l
9696

9797
[recent browser="new"]
9898

99-
Let's say we want a last element of the array.
99+
Let's say we want the last element of the array.
100100

101101
Some programming languages allow to use negative indexes for the same purpose, like `fruits[-1]`.
102102

@@ -403,7 +403,7 @@ It's rarely used, because square brackets `[]` are shorter. Also, there's a tric
403403

404404
If `new Array` is called with a single argument which is a number, then it creates an array *without items, but with the given length*.
405405

406-
Let's see how one can shoot themself in the foot:
406+
Let's see how one can shoot themselves in the foot:
407407

408408
```js run
409409
let arr = new Array(2); // will it create an array of [2] ?

0 commit comments

Comments
 (0)