Type to search…

Bàsic

Deno is an open source JavaScript, TypeScript, and WebAssembly runtime with secure defaults and a great developer experience. It's built on V8, Rust, and Tokio.

This page hasn't been translated yet — shown in its original language:Català

Introducció

Començar

Instal·la deno:

shell
irm https://deno.land/install.ps1 | iex

Verifica la instal·lació:

shell
deno --version

Crea un fitxer TypeScript anomenat main i inclou el següent codi:

ts
// main.ts
function greet(name: string): string {
  return `Hello, ${name}!`
}

console.log(greet("world"))

Desa el fitxer i executa’l amb Deno:

shell
$ deno main.ts
Hello, world!

You're reading a preview.

Sign in to read the full article. Any account opens 4 free articles a month; students and teachers read their course pages without limit.

Sign in