Complete the code to import the default export from a URL.
import myModule from "[1]";
The import statement uses a full URL to load the module from the web in Deno.
Complete the code to import a named export from a URL.
import { serve } from "[1]";
The serve function is imported from the Deno standard HTTP server module URL.
Fix the error in the import statement to correctly import a module from a URL.
import [1] from "https://deno.land/std@0.177.0/fs/mod.ts";
readFile is a named export from the fs module, so use curly braces: import { readFile } from "https://deno.land/std@0.177.0/fs/mod.ts";
Fill both blanks to import all exports as a namespace and use it.
import * as [1] from "https://deno.land/std@0.177.0/path/mod.ts"; console.log([2].basename("/foo/bar/baz.txt"));
The namespace import is named path and used to call basename function.
Fill all three blanks to import a named export, rename it, and use it.
import { [1] as [2] } from "https://deno.land/std@0.177.0/fmt/colors.ts"; console.log([3]("Hello Deno"));
The named export red is renamed to colorRed and used to color the text.
