Type to search…

Computation

The initial purpose of computers was to compute numbers.

This page hasn't been translated yet — shown in its original language:Español

Introdució

Instal.la Bun

ps
irm bun.sh/install.ps1 | iex

REPL

Executa l’ordre bun repl per iniciar una sessió REPL:

ps
bun repl
Welcome to Bun v1.2.21
Type ".help" for more information.
>

Tots els llenguatges de programació fan servir números, i pots fer operacions aritmètiques amb aquests números.

Escriu l’ordre 3 + 7 i prem la tecla Enter:

ps
> 3 + 7
10

Pots veure que bun avalua l’expressió 3 + 7 i torna el resultat d’avaluar aquesta expressió.

Amb typescript pots efectuar les operacions aritmètiques habituals.

Pots restar dos nombres:

You're reading a preview.

Sign in with Google to read the full page. A Google account includes 5 free pages in total; students and teachers read their course pages without limit.

Sign in