Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update first_steps.md #431

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions runtime/manual/getting_started/first_steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ this data type. You can execute the code in this example using the `deno run`
command.

```console
deno run -A hello.ts
deno run hello.ts
```

You can
Expand All @@ -58,7 +58,7 @@ const site = await fetch("https://www.deno.com");
console.log(await site.text());
```

And then run it.
Because this example is fetching data from across the internet, you will need to allow network permissions. You can give network permissions with the `--allow-net` flag or by using `-A` to allow all permissions. We'll look at permissions and security in more depth later on. Run the example with:

```console
deno run -A hello.ts
Expand Down Expand Up @@ -117,7 +117,7 @@ Without any permission flags passed in, you'll see security prompts that look
something like this:

```console
kevin@kevin-deno scratchpad % deno run index.ts
$ deno run index.ts
✅ Granted net access to "www.deno.com".
┌ ⚠️ Deno requests net access to "deno.com".
├ Requested by `fetch()` API.
Expand Down Expand Up @@ -243,7 +243,7 @@ deno test person_test.ts
The output should look something like this:

```bash
kevin@kevin-deno scratchpad % deno test person_test.ts
$ deno test person_test.ts
Check file:///Users/kevin/dev/denoland/scratchpad/person_test.ts
running 1 test from ./person_test.ts
sayHello function ... ok (4ms)
Expand Down
Loading