GeezerVison is showing github.com — Merge pull request #75 from GitbookIO/multilangs · blessonism/javascript@291dd5a
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Language | | 2 | + | | 3 | +* [English](./en) |
Collapse file Copy file name to clipboardExpand all lines: README.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,9 +3,9 @@ Learn Javascript | 3 | 3 |
| 4 | 4 | This book will teach you the basics of programming and Javascript. Whether you are an experienced programmer or not, this book is intended for everyone who wishes to learn the JavaScript programming language. | 5 | 5 |
| 6 | | - | | 6 | +This book has been generated using [GitBook](http://www.gitbook.com) and is open source, feel free to contribute or signal issues on [GitHub](https://github.com/GitbookIO/javascript). You can download a **PDF** or **ePUB** version at [https://www.gitbook.com/book/GitBookIO/javascript](https://www.gitbook.com/book/GitBookIO/javascript). | | 7 | + | | 8 | + | 7 | 9 |
| 8 | | -JavaScript (*JS for short*) is the programming language that enables web pages to respond to user interaction beyond the basic level. It was created in 1995, and is today one of the most famous and used programming languages. | 9 | 10 |
| 10 | 11 |
| 11 | | -**Note:** This book has been generated using [GitBook](http://www.gitbook.io) and is open source, feel free to contribute or signal issues on [GitHub](https://github.com/GitbookIO/javascript). You can download a **PDF** or **ePUB** version at [https://www.gitbook.io/book/GitBookIO/javascript](https://www.gitbook.io/book/GitBookIO/javascript). |
Collapse file Copy file name to clipboardExpand all lines: book.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | | 2 | + "gitbook": ">1.x.x", | 2 | 3 | "plugins": [ | 3 | 4 | "exercises" | 4 | 5 | ] | |
Collapse file Copy file name to clipboard +8Lines changed: 8 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +Learn Javascript | | 2 | +====== | | 3 | + | | 4 | +This book will teach you the basics of programming and Javascript. Whether you are an experienced programmer or not, this book is intended for everyone who wishes to learn the JavaScript programming language. | | 5 | + | | 6 | + | | 7 | + | | 8 | +JavaScript (*JS for short*) is the programming language that enables web pages to respond to user interaction beyond the basic level. It was created in 1995, and is today one of the most famous and used programming languages. |
Collapse file Copy file name to clipboard - Display the source diff
- Display the rich diff
File renamed without changes. Collapse file Copy file name to clipboardExpand all lines: en/arrays/README.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,6 +5,7 @@ Arrays are a fundamental part of programming. An array is a list of data. We can | 5 | 5 | The data in arrays are called **elements**. | 6 | 6 |
| 7 | 7 | Here is a simple array: | | 8 | + | 8 | 9 | ```javascript | 9 | 10 | // 1, 1, 2, 3, 5, and 8 are the elements in this array | 10 | 11 | var numbers = [1, 1, 2, 3, 5, 8]; | |
Collapse file Copy file name to clipboardExpand all lines: en/arrays/indices.md +5-12Lines changed: 5 additions & 12 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,31 +11,24 @@ var fruits = ["apple", "banana", "pineapple", "strawberry"]; | 11 | 11 | // second element. Result: banana = "banana" | 12 | 12 | var banana = fruits[1]; | 13 | 13 | ``` | 14 | | ---- | 15 | 14 |
| | 15 | +{% exercise %} | 16 | 16 | Define the variables using the indices of the array | 17 | | - | 18 | | -```js | | 17 | +{% initial %} | 19 | 18 | var cars = ["Mazda", "Honda", "Chevy", "Ford"] | 20 | 19 | var honda = | 21 | 20 | var ford = | 22 | 21 | var chevy = | 23 | 22 | var mazda = | 24 | | -``` | 25 | | - | 26 | | -```js | | 23 | +{% solution %} | 27 | 24 | var cars = ["Mazda", "Honda", "Chevy", "Ford"] | 28 | 25 | var honda = cars[1]; | 29 | 26 | var ford = cars[3]; | 30 | 27 | var chevy = cars[2]; | 31 | 28 | var mazda = cars[0]; | 32 | | -``` | 33 | | - | 34 | | -```js | | 29 | +{% validation %} | 35 | 30 | assert(honda === "Honda"); | 36 | 31 | assert(ford === "Ford"); | 37 | 32 | assert(chevy === "Chevy"); | 38 | 33 | assert(mazda === "Mazda"); | 39 | | -``` | 40 | | - | 41 | | ---- | | 34 | +{% endexercise %} |
Collapse file Copy file name to clipboardExpand all lines: en/arrays/length.md +7-14Lines changed: 7 additions & 14 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,23 +9,16 @@ var array = [1 , 2, 3]; | 9 | 9 | var l = array.length; | 10 | 10 | ``` | 11 | 11 |
| 12 | | ---- | 13 | | - | | 12 | +{% exercise %} | 14 | 13 | Define the variable a to be the number value of the length of the array | 15 | | - | 16 | | -```js | | 14 | +{% initial %} | 17 | 15 | var array = [1, 1, 2, 3, 5, 8]; | 18 | 16 | var l = array.length; | 19 | | -var a = | 20 | | -``` | 21 | | - | 22 | | -```js | | 17 | +var a = | | 18 | +{% solution %} | 23 | 19 | var array = [1, 1, 2, 3, 5, 8]; | 24 | 20 | var l = array.length; | 25 | 21 | var a = 6; | 26 | | -``` | 27 | | - | 28 | | -```js | 29 | | -assert (a === 6) | 30 | | -``` | 31 | | ---- | | 22 | +{% validation %} | | 23 | +assert (a === 6) | | 24 | +{% endexercise %} |
Collapse file Copy file name to clipboard File renamed without changes. Collapse file Copy file name to clipboard - Display the source diff
- Display the rich diff
File renamed without changes.
|