Complete the code to print 'Hello, Deno!' to the console.
console.[1]("Hello, Deno!");
The console.log function prints messages to the console in Deno.
Complete the command to run a Deno script named 'app.ts'.
deno [1] app.tsThe deno run command runs a Deno script file.
Fix the error in the code to correctly import and use the standard Deno colors module.
import { red } from "https://deno.land/std/fmt/colors.ts"; console.log(red("[1]"));
The string should exactly match the intended output 'Hello, Deno!' including punctuation.
Fill both blanks to create a simple Deno script that reads a file named 'data.txt' and prints its content.
const data = await Deno.[1]("data.txt", { [2]: "utf8" }); console.log(data);
Deno.readTextFile reads a file as text, and the option encoding: "utf8" specifies the text encoding.
Fill all three blanks to create a Deno script that fetches JSON data from a URL and logs the parsed object.
const response = await fetch("https://api.example.com/data"); const [1] = await response.[2](); console.[3](data);
The variable data stores the parsed JSON from response.json(), and console.log prints it.
