Complete the code to import a module in Deno using a URL.
import { serve } from "[1]";
Deno allows importing modules directly from URLs, unlike Node.js which uses local or npm modules.
Complete the code to run a simple HTTP server in Deno.
const server = serve({ port: [1] });The port number must be a number, not a string or variable name.
Fix the error in the permission flag to allow file reading in Deno.
deno run --allow-[1] script.tsTo read files, Deno requires the --allow-read permission flag.
Fill both blanks to correctly use Deno's built-in test runner.
Deno.[1]("example test", () => { if (1 + 1 !== 2) throw new Error("Fail"); }); Deno.[2]();
Deno.test defines a test, and Deno.runTests executes tests programmatically.
Fill all three blanks to create a secure Deno script that reads a file and logs its content.
const data = await Deno.[1]("example.txt", { [2]: "utf-8" }); console.[3](data);
Deno.readTextFile reads a file as text, and console.log outputs it to the console.
