Hello world
The one and only line in this program will print "Hello, World!" to the console.
console.log("Hello, World!");
Deno programs can either be written in JavaScript or TypeScript, or a mixture of both. All code in these examples is written in TypeScript, but all the examples also work in JavaScript.
Run this example locally using the Deno CLI:
deno run https://docs.deno.com/learn/examples/hello-world.ts