GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add changes :fish: · Shohan494/fullstack-javascript@9471d82

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • appendix-a
    • Appendix A.md
  • chapter1
    • chapter1.md
  • chapter5
    • chapter5.md
  • chapter6
    • chapter6.md
  • chapter7
    • chapter7.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎appendix-a/Appendix A.md‎

Copy file name to clipboardExpand all lines: appendix-a/Appendix A.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Please submit a GitHub issue if you have any feedback; comments;
6161
suggestions; or you've found typos, bugs, mistakes, or other errata:
6262
<https://github.com/azat-co/fullstack-javascript/issues>.
6363

64-
Other ways to connect are via: @azat\_co (http://twitter.com/azat\_co),
64+
Other ways to connect are via: @azat_co (http://twitter.com/azat_co),
6565
<http://webapplog.com>, <http://azat.co>.
6666

6767
In case you enjoyed Node.js and want to find out more about building
@@ -163,7 +163,7 @@ reading.
163163
Guide](http://nodeguide.com/style.html) (http://nodeguide.com/style.html)
164164

165165
- [Felix's Node.js Convincing the Boss
166-
Guide](http://nodeguide.com/convincing_the_boss.html) (http://nodeguide.com/convincing\_the\_boss.html)
166+
Guide](http://nodeguide.com/convincing_the_boss.html) (http://nodeguide.com/convincing_the_boss.html)
167167

168168
- [Introduction to
169169
NPM](http://howtonode.org/introduction-to-npm) (http://howtonode.org/introduction-to-npm)
Collapse file

‎chapter1/chapter1.md‎

Copy file name to clipboardExpand all lines: chapter1/chapter1.md
+22-22Lines changed: 22 additions & 22 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ and, of course, plain JavaScript. To convert the list of attributes to a
248248
list of JS events, just remove the prefixes on; for example, onclick
249249
attribute means click event.
250250

251-
More information is available at Example: [Catching a mouse click](https://developer.mozilla.org/en-US/docs/JavaScript/Getting\_Started\#Example:\_Catching\_a\_mouse\_click) (https://developer.mozilla.org/en-US/docs/JavaScript/Getting\_Started\#Example:\_Catching\_a\_mouse\_click),
251+
More information is available at Example: [Catching a mouse click](https://developer.mozilla.org/en-US/docs/JavaScript/Getting_Started\#Example:_Catching_a_mouse_click) (https://developer.mozilla.org/en-US/docs/JavaScript/Getting_Started\#Example:_Catching_a_mouse_click),
252252
[Wikipedia](http://en.wikipedia.org/wiki/HTML) (http://en.wikipedia.org/wiki/HTML) and
253253
[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML)(https://developer.mozilla.org/en-US/docs/Web/HTML).
254254

@@ -328,7 +328,7 @@ input[name="email"] {
328328

329329

330330
More information is available at Wikipedia
331-
(http://en.wikipedia.org/wiki/Cascading\_Style\_Sheets) and MDN
331+
(http://en.wikipedia.org/wiki/Cascading_Style_Sheets) and MDN
332332
(https://developer.mozilla.org/en-US/docs/Web/CSS).
333333

334334
CSS3 is an upgrade to CSS that includes new ways of doing things such as
@@ -390,7 +390,7 @@ Other ways to run JavaScript include the following:
390390

391391
One of the advantages of the JavaScript language is that it's loosely
392392
typed. This loose or weak typing, as opposed to strong typing
393-
(http://en.wikipedia.org/wiki/Strong\_typing) in languages like C and
393+
(http://en.wikipedia.org/wiki/Strong_typing) in languages like C and
394394
Java, makes JavaScript a better programming language for prototyping.
395395
Here are some of the main types of JavaScript objects or classes (there
396396
are not classes per se; objects inherit from objects).
@@ -407,7 +407,7 @@ var num = 1
407407

408408
This is the
409409
[Number](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number)
410-
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global\_Objects/Number
410+
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number
411411

412412
object and its methods; for example:
413413

@@ -429,7 +429,7 @@ var newStr = "abcde".substr(1,2)
429429

430430
For convenience, JavaScript automatically wraps string primitives with
431431
String object methods, but they are not quite the same
432-
(https://developer.mozilla.org/enUS/docs/JavaScript/Reference/Global\_Objects/String\#Distinction\_between\_string\_primitives\_and\_String\_objects).
432+
(https://developer.mozilla.org/enUS/docs/JavaScript/Reference/Global_Objects/String\#Distinction_between_string_primitives_and_String_objects).
433433

434434
### String Object
435435

@@ -536,7 +536,7 @@ var d = new Date() //Sun May 12 2013 18:17:11 GMT-0700 (PDT)
536536
### Math Object
537537

538538
These are used for mathematical constants and functions
539-
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global\_Objects/Math;
539+
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math;
540540
for example:
541541

542542
```js
@@ -578,51 +578,51 @@ In addition to classes such as `String`, `Array`, `Number`, and `Math`, which
578578
have a lot of useful methods, you can call the following methods known
579579
as globals, meaning you can invoke them from anywhere in your code:
580580

581-
- encodeURI (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/encodeURI):
581+
- encodeURI (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI):
582582
Encodes a Uniform Resource Identifier (URI) to give you a URL, e.g.,
583583
encodeURI ('http://www.webapplog.com/js is awesome')
584584

585585
- decodeURI
586-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/decodeURI):
586+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI):
587587
Decodes a URI
588588

589589
- encodeURIComponent
590-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/encodeURIComponent):
590+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent):
591591
Encode URI for URL parameters (don’t use it for the entire
592592
URL string)
593593

594594
- decodeURIComponent
595-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/decodeURIComponent):
595+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent):
596596
Decodes the fragment
597597

598598
- isNaN (
599-
<https://developer.mozilla.org/en/docs/Web/>JavaScript/Reference/Global\_Objects/
599+
<https://developer.mozilla.org/en/docs/Web/>JavaScript/Reference/Global_Objects/
600600
isNaN): Determines whether a value is a number or not
601601

602602
- [JSON](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON)
603-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/JSON):
603+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON):
604604
Parsing (parse()) and serializing (stringify()) of JSON data
605605

606606
- [parseFloat](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/parseFloat)
607607
(
608-
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global\_Objects/parseFloat):
608+
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/parseFloat):
609609
Converts a string to a floating number
610610

611611
- [parseInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt)
612-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/parseInt):
612+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt):
613613
Converts a string to a number
614614

615615
- [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
616-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Intl):
616+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl):
617617
Language-specific string comparison methods
618618

619619
- Error
620-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error):
620+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error):
621621
An error object that you can use to instantiate your own error
622622
objects; for example, throw new Error('This book rocks!')
623623

624624
- [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)
625-
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Date): Various methods to work with dates
625+
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date): Various methods to work with dates
626626

627627
### Conventions
628628

@@ -646,7 +646,7 @@ function Sum(a,b) {
646646
console.log(Sum(1, 2))
647647
```
648648

649-
Functions in JavaScript are first-class citizens (http://en.wikipedia.org/wiki/First-class\_function) due to the functional programming (http://en.wikipedia.org/wiki/Functional\_programming) nature of the language. Therefore, functions can be used as other variables or objects; for example, functions can be passed to other functions as arguments:
649+
Functions in JavaScript are first-class citizens (http://en.wikipedia.org/wiki/First-class_function) due to the functional programming (http://en.wikipedia.org/wiki/Functional_programming) nature of the language. Therefore, functions can be used as other variables or objects; for example, functions can be passed to other functions as arguments:
650650

651651
```js
652652
var f = function (str1){
@@ -667,7 +667,7 @@ It's good to know that there are several ways to instantiate an object in JS:
667667
(http://javascript.info/tutorial/pseudo-classical-pattern) pattern
668668
- Functional inheritance pattern
669669
670-
For further reading on inheritance patterns, check out Inheritance Patterns in JavaScript (http://bolinfest.com/javascript/inheritance.php) and Inheritance revisited (https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Inheritance\_Revisited).
670+
For further reading on inheritance patterns, check out Inheritance Patterns in JavaScript (http://bolinfest.com/javascript/inheritance.php) and Inheritance revisited (https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Inheritance_Revisited).
671671
672672
More information about browser-run JavaScript is available at Mozilla Developer Network (https://developer.mozilla.org/en-US/docs/JavaScript/Reference), Wikipedia (http://en.wikipedia.org/wiki/JavaScript), and w3schools (http://www.w3schools.com/js/default.asp).
673673
@@ -754,7 +754,7 @@ In those cases where you still need your own custom server code, Node.js is the
754754
Node.js
755755
-------
756756
757-
Node.js is an open source, event-driven asynchronous I/O technology for building scalable and efficient web servers. Node.js consists of Google’s V8 JavaScript engine (http://en.wikipedia.org/wiki/V8\_(JavaScript\_engine)). It was maintained by cloud company Joyent (http://joyent.com), but moved to the Technical Steering Committee governance.
757+
Node.js is an open source, event-driven asynchronous I/O technology for building scalable and efficient web servers. Node.js consists of Google’s V8 JavaScript engine (http://en.wikipedia.org/wiki/V8_(JavaScript_engine)). It was maintained by cloud company Joyent (http://joyent.com), but moved to the Technical Steering Committee governance.
758758
759759
The purpose and use of Node.js is similar to Twisted (<http://twistedmatrix.com/trac>) for Python and EventMachine (<http://rubyeventmachine.com>) for Ruby. The JavaScript implementation of Node was the third one after attempts at using Ruby and C++ programming languages languages.
760760
@@ -849,12 +849,12 @@ Table 1-1 is an example of a simple Create, Read, Update and Delete (CRUD) RESTf
849849
850850
REST is not a protocol; it is an architecture in the sense that it's more flexible than SOAP, which is a protocol. Therefore, REST API URLs could look like /messages/list.html or /messages/list.xml in case we want to support these formats.
851851
852-
PUT and DELETE are idempotent methods (http://en.wikipedia.org/wiki/Hypertext\_Transfer\_Protocol\#Idempotent\_methods\_and\_web\_applications),
852+
PUT and DELETE are idempotent methods (http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol\#Idempotent_methods_and_web_applications),
853853
which means that if the server receives two or more similar requests, the end result will be the same.
854854
855855
GET is nullipotent and POST is not idempotent and might affect state and cause side effects.
856856
857-
Further reading on REST API can be found at Wikipedia (http://en.wikipedia. org/wiki/Representational\_state\_transfer) and A Brief Introduction to REST article(http://www.infoq.com/articles/rest-introduction).
857+
Further reading on REST API can be found at Wikipedia (http://en.wikipedia. org/wiki/Representational_state_transfer) and A Brief Introduction to REST article(http://www.infoq.com/articles/rest-introduction).
858858
859859
Summary
860860
=======
Collapse file

‎chapter5/chapter5.md‎

Copy file name to clipboardExpand all lines: chapter5/chapter5.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ the models variable is defined and not empty:
339339
if (typeof models != 'undefined' && models.length > 0) {
340340

341341
`_.each()` is an iteration function from the UnderscoreJS library
342-
([underscorejs.org/\#each](http://underscorejs.org/#each)), which does
342+
([underscorejs.org/#each](http://underscorejs.org/#each)), which does
343343
exactly what it sounds like—iterates through elements of an
344344
object/array:
345345

Collapse file

‎chapter6/chapter6.md‎

Copy file name to clipboardExpand all lines: chapter6/chapter6.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ execute this command in your terminal:
4444

4545
As of this writing, the latest version is 5.1.0. If you don't have
4646
Node.js installed, or if your version is behind, you can download the
47-
latest version at [nodejs.org/\#download](http://nodejs.org/#download).
47+
latest version at [nodejs.org/#download](http://nodejs.org/#download).
4848
You can use one of these tools for version management (i.e., switching
4949
between Node.js versions):
5050

@@ -412,7 +412,7 @@ demonstrates the project: http://bit.ly/1QnqO9P.
412412

413413
The first version of the Message Board back-end application will store
414414
messages only in runtime memory storage for the sake of KISS
415-
(http://en.wikipedia.org/wiki/KISS\_principle). That means that each
415+
(http://en.wikipedia.org/wiki/KISS_principle). That means that each
416416
time we start/reset the server, the data will be lost.
417417

418418
We'll start with a simple test case first to illustrate the Test-Driven
Collapse file

‎chapter7/chapter7.md‎

Copy file name to clipboardExpand all lines: chapter7/chapter7.md
+12-12Lines changed: 12 additions & 12 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,26 @@ cheatsheet (<https://gum.co/mongodb/git-874e6fb4>):
7878
- `> show collections`: show collections in the selected database
7979

8080
- `> db.COLLECTION_NAME.find()`: perform the find query on
81-
collection with the COLLECTION\_NAME name to find any items
81+
collection with the COLLECTION_NAME name to find any items
8282

8383
- `> db.COLLECTION_NAME.find({"_id": ObjectId("549d9a3081d0f07866fdaac6")})`:
84-
perform the find query on collection with the COLLECTION\_NAME name
84+
perform the find query on collection with the COLLECTION_NAME name
8585
to find item with ID 549d9a3081d0f07866fdaac6
8686

8787
- `> db.COLLECTION_NAME.find({"email": /gmail/})`: perform the
8888
find query on collection with the COLLECTION_NAME name to find
8989
items with e-mail property matching `/gmail/` regular expression, e.g., [email protected] or [email protected]
9090

9191
- `> db.COLLECTION_NAME.update(QUERY_OBJECT, SET_OBJECT)`: perform
92-
the update query on collection with the COLLECTION\_NAME name to
93-
update items that match QUERY\_OBJECT with SET\_OBJECT
92+
the update query on collection with the COLLECTION_NAME name to
93+
update items that match QUERY_OBJECT with SET_OBJECT
9494

9595
- `> db.COLLECTION_NAME.remove(QUERY_OBJECT)`: perform remove
96-
query for items matching QUERY\_OBJECT criteria on the
97-
COLLECTION\_NAME collection
96+
query for items matching QUERY_OBJECT criteria on the
97+
COLLECTION_NAME collection
9898

9999
- `> db.COLLECTION_NAME.insert(OBJECT)`: add OBJECT to the
100-
collection with the COLLECTION\_NAME name
100+
collection with the COLLECTION_NAME name
101101

102102
So starting from a fresh shell session, you can execute these commands
103103
to create a document, change it, and remove:
@@ -121,7 +121,7 @@ You can download the MongoDB and Mongoose cheatsheet as a
121121
[PDF](https://gum.co/mongodb/fsjs-CB07C579)
122122
(https://gumroad.com/l/mongodb/fsjs-CB07C579\#) or view it
123123
[online](https://github.com/azat-co/cheatsheets/tree/master/mongodb-mongoose)
124-
at https://github.com/mongodb/node-mongodb-native/\#data-types.
124+
at https://github.com/mongodb/node-mongodb-native/#data-types.
125125

126126
A full overview of the MongoDB interactive shell is available at
127127
mongodb.org: [Overview – The MongoDB Interactive
@@ -142,10 +142,10 @@ proper case). Otherwise you'll get an error. More on the types:
142142
(http://www.mongodb.org/ display/DOCS/Object+IDs) vs [Data Types in
143143
MongoDB Native Node.js
144144
Drier](https://github.com/mongodb/node-mongodb-native/#data-types)
145-
(https://github.com/mongodb/node-mongodb-native/\#data-types ). Example
146-
of Node.js code with mongodb.ObjectID() : collection.findOne({\_id: new
145+
(https://github.com/mongodb/node-mongodb-native/#data-types ). Example
146+
of Node.js code with mongodb.ObjectID() : collection.findOne({_id: new
147147
ObjectID(idString)}, console.log) // ok . On the other hand, in the
148-
MongoDB shell, we employ: db.messages.findOne({\_id:ObjectId(idStr)}); .
148+
MongoDB shell, we employ: db.messages.findOne({_id:ObjectId(idStr)}); .
149149

150150
MongoDB Native Driver
151151
=====================
@@ -255,7 +255,7 @@ db.open(function(error, connection){
255255
```
256256

257257
This code snippet is available at
258-
<https://github.com/mongodb/node-mongodb-native/\#data-types>. If we run
258+
<https://github.com/mongodb/node-mongodb-native/#data-types>. If we run
259259
it, it should output "connected" in the terminal. When you're in doubt
260260
and need to check the properties of an object, there is a useful method
261261
in the `util` module:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.