Skip to content

Commit 6041aeb

Browse files
committed
Use conventional capitalization of Web and Internet
1 parent ad258a2 commit 6041aeb

8 files changed

Lines changed: 26 additions & 26 deletions

File tree

00_intro.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ compose these blocks.
280280
== What is JavaScript? ==
281281

282282
indexsee:[WWW,World Wide Web]
283-
indexsee:[web,World Wide Web]
283+
indexsee:[Web,World Wide Web]
284284
(((JavaScript)))(((JavaScript,history of)))(((World Wide Web)))
285-
JavaScript was introduced in 1995, as a way to add programs to web
285+
JavaScript was introduced in 1995, as a way to add programs to Web
286286
pages in the Netscape Navigator browser. The language has since been
287287
adapted by all other major graphical web browsers. It has made the
288-
current generation of web applications possible—browser-based email
288+
current generation of Web applications possible—browser-based email
289289
clients, maps, and social networks—and is also used in more
290290
traditional sites to provide various forms of interactivity and
291291
cleverness.

02_program_structure.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ number or different types of arguments.
224224
The `alert` function can be useful as an output device when
225225
experimenting, but clicking away all those little windows will get on
226226
your nerves. In past examples, we've used `console.log` to
227-
output values. Most JavaScript systems (including all modern web
227+
output values. Most JavaScript systems (including all modern Web
228228
browsers and node.js) provide a `console.log` function that writes out
229229
its arguments to _some_ text output device. In browsers, the output
230230
lands in the JavaScript console. This part of the browser interface
231231
is hidden by default, but most browsers open it when you press F12.
232232
If that does not work, search through the menus for an item named
233-
web console” or “developer tools”.
233+
Web console” or “developer tools”.
234234

235235
ifdef::html_target[]
236236

@@ -308,7 +308,7 @@ prompt("Tell me everything you know.", "...");
308308

309309
image::img/prompt.png[alt="An prompt dialog"]
310310

311-
These two functions aren't used much in modern web programming, mostly
311+
These two functions aren't used much in modern Web programming, mostly
312312
because you have no control over the way the resulting windows look,
313313
but they are very useful for toy programs and experiments.
314314

04_data.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The online coding sandbox for the book (`eloquentjavascript.net/code`)
3535
will automatically load the needed code when you are running a
3636
specific example. If you decide to work through the examples in
3737
another environment, be sure to start from the full code for this
38-
chapter (`04_data.js`, available from the web site).
38+
chapter (`04_data.js`, available from the website).
3939

4040
endif::tex_target[]
4141

05_higher_order.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ allowed.
399399

400400
This format is called JSON, pronounced “Jason”, which stands for
401401
JavaScript Object Notation. It is widely used as a data storage and
402-
communication format on the web.
402+
communication format on the Web.
403403

404404
JavaScript provides two functions, `JSON.stringify` and `JSON.parse`,
405405
that convert data from and to this format.

08_error.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ program to pause every time the line with the breakpoint is reached,
276276
and allowing you to inspect the values of variables at that point. I
277277
won't go into the interface to this debugger, since it differs per
278278
browser and browser version, but look around in the developer tools,
279-
and search the web. An alternative way to set a breakpoint is by
279+
and search the Web. An alternative way to set a breakpoint is by
280280
including a `debugger` statement (consisting of simply that keyword)
281281
in your program. Whenever that is reached, if the developer tools of
282282
the browser are active, the program will pause, and you will be able

10_modules.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ about those dependencies, making it harder to accidentally use some
298298
module without stating that you need it.
299299

300300
Our goal is a function `require` which, when given a module name, will
301-
load that file (from disk or the web, depending on the platform
301+
load that file (from disk or the Web, depending on the platform
302302
we are running on), and return the appropriate interface value.
303303

304304
For this we need at least two things. Firstly, we will imagine that we
305305
have a function `readFile` (which is not present in standard
306306
JavaScript), which returns the content of the file with the given
307-
name. There are ways to access the web from JavaScript in the browser,
307+
name. There are ways to access the Web from JavaScript in the browser,
308308
and to access the hard disk from other JavaScript platforms, but they
309309
are more involved. For now, we just pretend we have this simple
310310
function.
@@ -458,7 +458,7 @@ and “globally” registered module names.
458458

459459
Though it is possible to use the style above in JavaScript written for
460460
the browser, it is somewhat involved. The reason for this is that
461-
reading a file (module) from the web is a lot slower than reading it
461+
reading a file (module) from the Web is a lot slower than reading it
462462
from your hard disk. Browser JavaScript is required to behave in such
463463
a way that, while a script is running, nothing else can happen to the
464464
web site in which it runs. This means that if every require call would

12_browser.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ developed means that the resulting system is not exactly a shining
3232
example of internal consistency. In fact, some parts of it are
3333
downright messy and confusing.
3434

35-
== Networks and the internet ==
35+
== Networks and the Internet ==
3636

3737
Computer networks have been known since the 1950s. If you put cables
3838
between two or more computers, and allow them to send data back and
@@ -71,7 +71,7 @@ technical problem.
7171

7272
TCP (_Transmission Control Protocol_) is a protocol that solves this
7373
problem. All internet-connected devices “speak” it, and it is used as
74-
infrastructure for most communication on the internet.
74+
infrastructure for most communication on the Internet.
7575

7676
A TCP connection works as follows: one computer must be waiting,
7777
“listening”, for other computers to start talking to it. To be able to
@@ -94,16 +94,16 @@ successfully transmitted, be read out again by the machine on the
9494
other side. This is a very convenient model. You could say that TCP
9595
provides an abstraction of the network.
9696

97-
== The web ==
97+
== The Web ==
9898

99-
The _World Wide Web_ (not to be confused with the internet as a whole)
99+
The _World Wide Web_ (not to be confused with the Internet as a whole)
100100
is a set of protocols and formats that allow us to open web pages in a
101-
browser. The “web” part in the name refers to the fact that such pages
101+
browser. The “Web” part in the name refers to the fact that such pages
102102
can easily link to each other, thus forming one huge, interconnected
103103
system that users can effortlessly move through.
104104

105-
To add content to this web, all that is needed is to connect a machine
106-
to the internet, and have it listen on port 80, using HTTP (the
105+
To add content to this Web, all that is needed is to connect a machine
106+
to the Internet, and have it listen on port 80, using HTTP (the
107107
_Hyper-Text Transfer Protocol_). This protocol allows other computers
108108
to request documents over the network.
109109

@@ -122,7 +122,7 @@ opposed to for example, secure, encrypted HTTP, which would be
122122
should have the document. And finally, after that, a string that
123123
identifies the actual document we are interested in.
124124

125-
Each machine connected to the internet gets a unique address (its _IP
125+
Each machine connected to the Internet gets a unique address (its _IP
126126
address_), which will look something like `37.187.37.82`. You can use
127127
those directly as the server part of a URL, but lists of more or less
128128
random numbers are hard to remember and awkward to type, so it is
@@ -292,13 +292,13 @@ program harder to read.
292292

293293
== In the sandbox ==
294294

295-
Running programs downloaded off the internet is potentially dangerous.
295+
Running programs downloaded off the Internet is potentially dangerous.
296296
You do not know much about the people behind most sites you visit, so
297297
you can not necessarily know that they mean well. Running programs by
298298
people who do not mean well is how you get your computer infected by
299299
viruses, your data stolen, and your accounts hacked.
300300

301-
Yet the attraction of the web is that you can “surf” it without
301+
Yet the attraction of the Web is that you can “surf” it without
302302
trusting all the pages you visit. This is why browsers severely limit
303303
the things a JavaScript program may do. It is not allowed to look at
304304
the files on your computer or to modify anything not related to the
@@ -328,12 +328,12 @@ government or mafia).
328328

329329
== Compatibility and the browser wars ==
330330

331-
In the very early stages of the web, a browser called Mosaic dominated
331+
In the very early stages of the Web, a browser called Mosaic dominated
332332
the market. After a few years, the balance had shifted to Netscape,
333333
which was then, in turn, largely superseded by Microsoft's Internet
334334
Explorer. At any point where a single browser was dominant, that
335335
browser's vendor would feel entitled to unilaterally invent new
336-
features for the web. Since most users used the same browser, web
336+
features for the Web. Since most users used the same browser, web
337337
sites would simply start using those features, never mind the other
338338
browsers.
339339

@@ -359,7 +359,7 @@ latest versions of the major browsers behave quite uniformly, and have
359359
relatively little bugs.
360360

361361
Which is not to say that the situation is perfect just yet. Some of
362-
the people using the web are, for reasons of inertia or corporate
362+
the people using the Web are, for reasons of inertia or corporate
363363
policy, stuck with very old browsers. Until those die out entirely,
364364
writing web sites that work for them will require a lot of arcane
365365
knowledge about their shortcomings and quirks.

14_event.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ order of magnitude harder.
640640
The fact that JavaScript programs only do one thing at a time thus
641641
makes our life quite a bit easier. For when you really do want to do
642642
some time-consuming thing in the background, without freezing the
643-
document, browsers provide something called “web workers”. A worker is
643+
document, browsers provide something called _Web Workers_. A worker is
644644
an isolated JavaScript environment, which runs alongside the main
645645
program for a document, and can only communicate with it by sending
646646
and receiving messages.

0 commit comments

Comments
 (0)