Complete the code to run a TypeScript file directly with Deno.
deno run [1]Deno runs TypeScript files directly without extra setup. Use the .ts file extension.
Complete the code to import a TypeScript module in Deno.
import [1] from './mod.ts';
You import a module by giving it a valid variable name to use in your code.
Fix the error in the TypeScript code to declare a variable with a string type.
let name: [1] = 'Deno';
The variable name holds text, so its type should be string.
Fill both blanks to define a function with typed parameters and return type in TypeScript.
function greet(name: [1]): [2] { return `Hello, ${name}`; }
The parameter name is a string, and the function returns a string greeting.
Fill all three blanks to create a typed object and access its property in TypeScript.
const user: [1] = { name: [2] }; console.log(user.[3]);
The object user has a type with a name string property. We assign the string 'Alice' and access the name property.
