Skip to main content

Hello world

Edit on Github
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

Did you find what you needed?

Privacy policy