Complete the code to run a Deno script with permissions.
deno run [1] script.tsThe --allow-net flag grants network access, which is a common permission needed when running Deno scripts.
Complete the code to bundle a Deno script into a single file.
deno bundle [1] bundle.jsThe deno bundle command takes the source file as input, here script.ts, and outputs a bundled file.
Fix the error in the command to run a Deno script with all permissions.
deno run [1] script.tsThe correct flag to grant all permissions is --allow-all without any value or equals sign.
Fill both blanks to import and use the Deno standard library's path module.
import * as path from "[1]"; console.log(path.[2]("/foo", "bar"));
The path module is imported from the standard library URL, and join combines path segments.
Fill all three blanks to create a simple HTTP server using Deno's standard library.
import { serve } from "[1]"; const server = serve({ port: [2] }); for await (const req of server) { req.[3](200, { "content-type": "text/plain" }, new TextEncoder().encode("Hello Deno!")); }
The serve function is imported from the HTTP server module, the port is set to 8080, and respond sends the response.
