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 — fix code blocks · msolov/fullstack-javascript@88048b8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • chapter7
    • chapter7.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chapter7/chapter7.md‎

Copy file name to clipboardExpand all lines: chapter7/chapter7.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ db.open(function(error, connection) {
238238
```
239239

240240
To check that we have the connection, we need to handle `error`. Also,
241-
let's get the admin object with `db.admin``(``)` and fetch the list of
242-
databases with `listDatabases``()`:
241+
let's get the admin object with `db.admin()` and fetch the list of
242+
databases with `listDatabases()`:
243243

244244
```
245245
var db=new Db ('test', new Server(host, port, {}))
@@ -513,7 +513,7 @@ endpoints/routes. We need to fetch the documents on GET
513513
})
514514
```
515515

516-
On the POST `/messages/``create.json`, we inserting the document:
516+
On the POST `/messages/create.json`, we inserting the document:
517517

518518
```
519519
} else if (request.method === 'POST' && request.url === '/messages/create.json') {
@@ -554,7 +554,7 @@ To test via CURL terminal commands run:
554554
Or open your browser at the http://locahost:1337/messages/list.json
555555
location.
556556

557-
It should give you an empty array: `[]``,` which is fine. Then POST a
557+
It should give you an empty array: `[]`, which is fine. Then POST a
558558
new message:
559559

560560
`$ curl -d "username=BOB&message=test" http://localhost:5000/messages/create.json`

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.