mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
improve docs (#5872)
This commit is contained in:
parent
228f9c207f
commit
44477596ed
5 changed files with 14 additions and 15 deletions
|
@ -1,7 +1,6 @@
|
|||
## First steps
|
||||
|
||||
This page contains some simple examples to teach you about the fundamentals of
|
||||
Deno.
|
||||
This page contains some examples to teach you about the fundamentals of Deno.
|
||||
|
||||
This document assumes that you have some prior knowledge of JavaScript,
|
||||
especially about `async`/`await`. If you have no prior knowledge of JavaScript,
|
||||
|
@ -14,8 +13,8 @@ before attempting to start with Deno.
|
|||
Deno is a runtime for JavaScript/TypeScript which tries to be web compatible and
|
||||
use modern features wherever possible.
|
||||
|
||||
Browser compatibility means a simple `Hello World` program in Deno is the same
|
||||
as the one you can run in the browser:
|
||||
Browser compatibility means a `Hello World` program in Deno is the same as the
|
||||
one you can run in the browser:
|
||||
|
||||
```ts
|
||||
console.log("Welcome to Deno 🦕");
|
||||
|
@ -106,10 +105,10 @@ Try the program:
|
|||
deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
|
||||
```
|
||||
|
||||
### A simple TCP server
|
||||
### TCP server
|
||||
|
||||
This is an example of a simple server which accepts connections on port 8080,
|
||||
and returns to the client anything it sends.
|
||||
This is an example of a server which accepts connections on port 8080, and
|
||||
returns to the client anything it sends.
|
||||
|
||||
```ts
|
||||
const hostname = "0.0.0.0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue