Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpesquet committed Apr 27, 2017
1 parent 7eca80e commit 28a4610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions manuscript/chapter07.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ Imagine you want to create a list of all the movies you've seen this year.
One solution would be to create several variables:

```js
var movie1 = "The Wolf of Wall Street";
var movie2 = "Zootopia";
var movie3 = "Babysitting";
var movie4 = "Metropolis";
var movie5 = "Gone with the Wind";
const movie1 = "The Wolf of Wall Street";
const movie2 = "Zootopia";
const movie3 = "Babysitting";
const movie4 = "Metropolis";
const movie5 = "Gone with the Wind";
// ...
```

Expand Down
4 changes: 2 additions & 2 deletions manuscript/chapter20.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Understanding the fundamentals of web development crucial for every JavaScript d

* Web resources are uniquely addressed by their **URL** (Uniform resource locator). An URL is a text of the form `http://www.mywebsite.com/myresourcepath/myresource`.

* In a traditional web development scenario, user actions lead to a full page reload. Another web development model, nicknamed **AJAX** (Aynchronous JavaScript and XML), uses JavaScript and **asynchronous** HTTP requests to fetch data when needed and update only the desired portions of the page. This enables the creation of web applications
* In a traditional web development scenario, user actions on a page trigger a full reload after a synchronous request to a server. Another web development model, nicknamed **AJAX** (Aynchronous JavaScript and XML), uses JavaScript and **asynchronous** HTTP requests to fetch data when needed and update only the desired portions of the page. This enables the creation of **web applications**, aiming to offer the user experience of a native app.

* Cross-domain AJAX requests are only possible if the server has been configured to accept them by setting on **cross-origin resource sharing** (CORS).

Expand Down Expand Up @@ -164,7 +164,7 @@ For security reasons, many websites have a conservative policy regarding AJAX re

Enabling cross-domain requests is done by setting on **cross-origin resource sharing** (CORS) in the server configuration.

> For more information about this topic, check out thi [MDN article](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS).
> For more information about this topic, check out this [MDN article](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS).
## JSON, a data format for the web

Expand Down

0 comments on commit 28a4610

Please sign in to comment.