Complete the code to import the Deno Deploy standard HTTP server.
import { serve } from "https://deno.land/std/http/[1]";
The standard HTTP server module in Deno Deploy is imported from server.ts.
Complete the code to start the HTTP server and respond with 'Hello from Deno Deploy!'.
serve((req) => new Response("Hello from [1]!"));
The response message should mention 'Deno Deploy' to show the server is running there.
Fix the error in the deployment script by completing the missing command to deploy to Deno Deploy.
deno deploy [1]--token which is for authentication, not project name.--name which is not a valid flag.--import-map which is unrelated to deployment name.The --project flag specifies the project name when deploying with deno deploy.
Fill both blanks to create a simple Deno Deploy handler that returns JSON with a message and status code.
serve((req) => new Response(JSON.stringify({ message: "[1]" }), { status: [2] }));The message should greet from Deno Deploy and the status code 200 means success.
Fill all three blanks to create a Deno Deploy handler that reads a query parameter 'name' and responds with a personalized greeting or a default message.
serve((req) => {
const url = new URL(req.url);
const name = url.searchParams.get("[1]") || "[2]";
return new Response(`Hello, $[3]!`);
});The query parameter is 'name', default is 'Guest', and the variable used in the greeting is 'name'.
