Complete the code to import the "oak" module from deno.land/x.
import { Application } from "https://deno.land/x/oak@[1]/mod.ts";
The correct version to import the oak module is v12.5.0. This ensures compatibility with the latest features.
Complete the code to create a new Oak application instance.
const app = new [1]();In Oak, the main app instance is created with new Application().
Fix the error in the import statement to correctly import the Router from oak.
import { [1] } from "https://deno.land/x/oak@v12.5.0/mod.ts";
The correct export name is Router with uppercase R.
Fill both blanks to create a simple Oak route that responds with 'Hello World'.
router.[1]("/", (ctx) => { ctx.response.[2] = "Hello World"; });
The method to handle GET requests is get, and to set the response body we assign to ctx.response.body.
Fill all three blanks to start the Oak application listening on port 8000 and log a message.
app.[1](8000); console.[2]("Server running on port", [3]);
Use app.listen(8000) to start the server, and console.log to print the message with the port number.
