Skip to content

Commit 53e1e87

Browse files
committed
docs: ✏️ typo fixes
1 parent 0d9e07f commit 53e1e87

File tree

30 files changed

+50
-58
lines changed

30 files changed

+50
-58
lines changed

en/README.md

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

33
Computers are common in today's world, as they are able to perform a wide variety of tasks quickly and accurately. They are used in many different industries, such as business, healthcare, education, and entertainment, and have become an essential part of daily life for many people. Besides this, they are also used to perform complex scientific and mathematical calculations, to store and process large amounts of data, and to communicate with people around the world.
44

5-
Programming involves creating a set of instructions, called a program, for a computer to follow. It can be tedious and frustrating at times because computers are very precise and need specific instructions in order to complete tasks.
5+
Programming involves creating a set of instructions, called a program, for a computer to follow. Writing a program can be tedious and frustrating at times because computers are very precise and need specific instructions in order to complete tasks.
66

77
![Intro Page](../.gitbook/assets/intro.png)
88

@@ -12,9 +12,9 @@ In the past, the primary way to interact with computers was through language-bas
1212

1313
JavaScript (_JS for short_) is the programming language that is used to create dynamic interaction while developing webpages, games, applications, and even servers. JavaScript started at Netscape, a web browser developed in the 1990s, and is today one of the most famous and used programming languages.
1414

15-
Initially, it was created for making webpages alive and was able to run on a browser only. Now, it runs on any device that supports the JavaScript engine. Standard objects such as [Array](./arrays/README.md), [Date](./date-and-time.md), and [Math](./numbers/math.md) are available in JavaScript, as well as operators, control structures, and statements. _Client-side JavaScript_ and _Server-side JavaScript_ are the extended versions of Core JavaScript.
15+
Initially, it was created for making webpages alive and was able to run only on a browser. Now, it runs on any device that supports the JavaScript engine. Standard objects such as [Array](./arrays/README.md), [Date](./date-and-time.md), and [Math](./numbers/math.md) are available in JavaScript, as well as operators, control structures, and statements. _Client-side JavaScript_ and _Server-side JavaScript_ are the extended versions of core JavaScript.
1616

17-
* _Client-side JavaScript_ enables the enhancement and manipulation of web pages and client browsers. Responses to user events such as mouse clicks, form input, and page navigation are some of its examples.
17+
* _Client-side JavaScript_ enables the enhancement and manipulation of web pages, and client browsers. Responses to user events such as mouse clicks, form input, and page navigation are some of its examples.
1818
* _Server-side JavaScript_ enables access to servers, databases, and file systems.
1919

2020
JavaScript is an interpreted language. While running Javascript an interpreter interprets each line and runs it. The modern browser uses Just In Time (JIT) technology for compilation, which compiles JavaScript into executable bytecode.
@@ -23,7 +23,7 @@ JavaScript is an interpreted language. While running Javascript an interpreter i
2323
"LiveScript" was the initial name given to JavaScript.
2424
{% endhint %}
2525

26-
This book is divided into three main parts. The first 14 chapters cover the JavaScript language. The following three chapters discuss how JavaScript is used to program web browsers. The final two chapters are miscellaneous, and exercises. Various important topics and cases related to JavaScript programming are described in the Miscellaneous chapter, which is followed exercises.
26+
This book is divided into three main parts. The first 14 chapters cover the JavaScript language. The following three chapters discuss how JavaScript is used to program web browsers. The final two chapters are miscellaneous, and exercises. Various important topics and cases related to JavaScript programming are described in the Miscellaneous chapter, which is followed by exercises.
2727

2828
### Code, and what to do with it
2929

en/arrays/for-each.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ or
3434
numbers.forEach(number => console.log(number * 2));
3535
```
3636

37-
 `forEach` does not modify the original array. It simply iterates over the elements of the array and executes the provided function for each element.
37+
The `forEach` method does not modify the original array. It simply iterates over the elements of the array and executes the provided function for each element.
3838

3939
{% hint style="warning" %}
4040
The `forEach()` method is not executed for the empty statment.

en/arrays/indices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Indices
22

3-
So you have your array of data elements, but what if you want to access a specific element? That is where indices come in. An **index** refers to a spot in the array. indices logically progress one by one, but it should be noted that the first index in an array is 0, as it is in most languages. Brackets `[]` are used to signify you are referring to an index of an array.
3+
So you have your array of data elements, but what if you want to access a specific element? That is where indices come in. An **index** refers to a spot in the array. Indices logically progress one by one, but it should be noted that the first index in an array is 0, as it is in most languages. Brackets `[]` are used to signify you are referring to an index of an array.
44

55
```javascript
66
// This is an array of strings

en/arrays/push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ function printArguments() {
3333
printArguments('a', 'b', 'c'); // Result: ["a", "b", "c", "d", "e", "f"]
3434
```
3535

36-
Note that the `push` method modifies the original array. It does not create a new array.
36+
> **Note**: The `push` method modifies the original array. It does not create a new array.

en/arrays/shift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shift
22

3-
`shift` deletes the first index of that array and moves all indexes to the left. It changes the original array. Here's the syntax for using `shift`:
3+
The `shift` method deletes the first index of that array and moves all indexes to the left. It changes the original array. Here's the syntax for using `shift`:
44

55
```c
66
array.shift();

en/basics/comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Comments are statements that will not be executed by the interpreter, comments a
44

55
In JavaScript, comments can be written in 2 different ways:
66

7-
* _Single-line comments_: It starts with two forward slashes (`//`) and continue until the end of the line. Anything following the slashes is ignored by the JavaScript interpreter. For example : 
7+
* _Single-line comments_: It starts with two forward slashes (`//`) and continue until the end of the line. Anything following the slashes is ignored by the JavaScript interpreter. For example:
88

99
```javascript
1010
// This is a comment, it will be ignored by the interpreter
1111
let a = "this is a variable defined in a statement";
1212
```
1313

14-
* Multi-line comments: It starts with a forward slash and an asterisk (`/*`) and end with an asterisk and a forward slash (`*/`). Anything between the opening and closing markers is ignored by the JavaScript interpreter. For example:
14+
* _Multi-line comments_: It starts with a forward slash and an asterisk (`/*`) and end with an asterisk and a forward slash (`*/`). Anything between the opening and closing markers is ignored by the JavaScript interpreter. For example:
1515

1616
```javascript
1717
/*

en/basics/equality.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Equality
22

3-
Programmers frequently need to determine the equality of variables in relation to other variables. This is done using an equality operator.
4-
5-
The most basic equality operator is the `==` operator. This operator does everything it can to determine if two variables are equal, even if they are not of the same type.
3+
While writing a program we frequently need to determine the equality of variables in relation to other variables. This is done using an equality operator. The most basic equality operator is the `==` operator. This operator does everything it can to determine if two variables are equal, even if they are not of the same type.
64

75
For example, assume:
86

en/basics/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The most common types are:
88
* **String**: Strings are sequences of characters, represented by either single quotes (e.g., `'hello'`) or double quotes (e.g., `"world"`).
99
* **Boolean**: Booleans represent a true or false value. They can be written as `true` or `false` (without quotes).
1010
* **Null**: The null type represents a null value, which means "no value." It can be written as `null` (without quotes).
11-
* **Undefined**: The undefined type represents a value that has not been set. If a variable has been declared, but has not been assigned a value, it is undefined.
11+
* **Undefined**: The undefined type represents a value that has not been set. If a variable has been declared, but has not been assigned a value, it is `undefined`.
1212
* **Object**: An object is a collection of properties, each of which has a name and a value. You can create an object using curly braces (`{}`) and assigning properties to it using name-value pairs.
1313
* **Array**: An array is a special type of object that can hold a collection of items. You can create an array using square brackets (`[]`) and assigning a list of values to it.
1414
* **Function**: A function is a block of code that can be defined and then called by name. Functions can accept arguments (inputs) and return a value (output). You can create a function using the `function` keyword.
@@ -67,7 +67,7 @@ Data types that cannot contain values:
6767
* `null`
6868
* `undefined`
6969

70-
A primitive data value is a simple data value with no additional properties and methods and is not an object. They are immutable, meaning that they can't be altered. There are 7 primitive data types:
70+
A primitive data value is a simple data value with no additional properties and methods, and is not an object. They are immutable, meaning that they can't be altered. There are 7 primitive data types:
7171

7272
* string
7373
* number

en/basics/variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ x = 3
3939
y = 5
4040
```
4141

42-
The same is true for programming languages. In programming, variables are containers for values that change. Variables can hold all kinds of values and also the results of computations. Variables have a name and a value separated by an equals sign (=). Variable names can be any letter or word but bear in mind that there are restrictions from language to language of what you can use, as some words are reserved for other functionality.
42+
The same is true for programming languages. In programming, variables are containers for values that change. Variables can hold all kinds of values and also the results of computations. Variables have a `name` and a `value` separated by an equals sign (=). However, it is important to keep in mind that different programming languages have their own limitations and constraints on what can be used as variable names. This is because certain words may be reserved for specific functions or operations within the language.
4343

44-
Let's check out how it works in Javascript, The following code defines two variables, computes the result of adding the two, and defines this result as a value of a third variable.
44+
Let's check out how it works in Javascript. The following code defines two variables, computes the result of adding the two, and defines this result as a value of a third variable.
4545

4646
```javascript
4747
let x = 5;
@@ -65,7 +65,7 @@ assert(x == 20);
6565
{% endexercise %}
6666
**ES6 Version**
6767

68-
ECMAScript 2015 or ES2015 also known as E6 is a significant update to the JavaScript programming language since 2009. In ES6 we have three ways of declaring variables. 
68+
[ECMAScript 2015 or ES2015](https://262.ecma-international.org/6.0/) also known as E6 is a significant update to the JavaScript programming language since 2009. In ES6 we have three ways of declaring variables. 
6969

7070
```javascript
7171
var x = 5;
@@ -95,7 +95,7 @@ function letTest(){
9595
}
9696
```
9797

98-
`const` variables are immutable - they are not allowed to be re-assigned.
98+
`const` variables are immutable meaning that they are not allowed to be re-assigned.
9999

100100
```javascript
101101
const x = "hi!";

en/browser-object-model-bom/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Browser Object Model (BOM)
22

3-
The browser object model lets us interact with the browser window. `window` object represents the browser's window and is supported by all browsers.
3+
The browser object model lets us interact with the browser window. The `window` object represents the browser's window and is supported by all browsers.
44

55
Object `window` is the default object for a browser, so we can specify `window` or call directly all the functions.
66

0 commit comments

Comments
 (0)