Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 291dd5a

Browse files
Merge pull request #75 from GitbookIO/multilangs
Switch to a multi-languages book
2 parents 05f5e3f + 878276d commit 291dd5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+110
-240
lines changed

‎LANGS.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Language
2+
3+
* [English](./en)

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Learn Javascript
33

44
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.
55

6-
![Screen](./assets/intro.png)
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+
![Screen](./en/assets/intro.png)
79

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.
910

1011

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).

‎book.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"gitbook": ">1.x.x",
23
"plugins": [
34
"exercises"
45
]

‎en/README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
![Screen](./assets/intro.png)
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.
File renamed without changes.

‎arrays/README.md‎ renamed to ‎en/arrays/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Arrays are a fundamental part of programming. An array is a list of data. We can
55
The data in arrays are called **elements**.
66

77
Here is a simple array:
8+
89
```javascript
910
// 1, 1, 2, 3, 5, and 8 are the elements in this array
1011
var numbers = [1, 1, 2, 3, 5, 8];

‎arrays/indices.md‎ renamed to ‎en/arrays/indices.md‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,24 @@ var fruits = ["apple", "banana", "pineapple", "strawberry"];
1111
// second element. Result: banana = "banana"
1212
var banana = fruits[1];
1313
```
14-
---
1514

15+
{% exercise %}
1616
Define the variables using the indices of the array
17-
18-
```js
17+
{% initial %}
1918
var cars = ["Mazda", "Honda", "Chevy", "Ford"]
2019
var honda =
2120
var ford =
2221
var chevy =
2322
var mazda =
24-
```
25-
26-
```js
23+
{% solution %}
2724
var cars = ["Mazda", "Honda", "Chevy", "Ford"]
2825
var honda = cars[1];
2926
var ford = cars[3];
3027
var chevy = cars[2];
3128
var mazda = cars[0];
32-
```
33-
34-
```js
29+
{% validation %}
3530
assert(honda === "Honda");
3631
assert(ford === "Ford");
3732
assert(chevy === "Chevy");
3833
assert(mazda === "Mazda");
39-
```
40-
41-
---
34+
{% endexercise %}

‎arrays/length.md‎ renamed to ‎en/arrays/length.md‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,16 @@ var array = [1 , 2, 3];
99
var l = array.length;
1010
```
1111

12-
---
13-
12+
{% exercise %}
1413
Define the variable a to be the number value of the length of the array
15-
16-
```js
14+
{% initial %}
1715
var array = [1, 1, 2, 3, 5, 8];
1816
var l = array.length;
19-
var a =
20-
```
21-
22-
```js
17+
var a =
18+
{% solution %}
2319
var array = [1, 1, 2, 3, 5, 8];
2420
var l = array.length;
2521
var a = 6;
26-
```
27-
28-
```js
29-
assert (a === 6)
30-
```
31-
---
22+
{% validation %}
23+
assert (a === 6)
24+
{% endexercise %}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /