TypeScript

Deno with TypeScript - intro

Install Follow to the official landig page. curl -fsSL https://deno.land/x/install/install.sh | sh Hello world Here is first_script.ts. var msg:string = "Hello world" console.log(msg) This is written in TypeScript. We can run the script by deno {{ your program name}}. Here is an example and result. deno first_script.ts Compile file:///Users/atlex/test/first_script.ts Hello World Run a simple web server with deno Here is the program hellow_serve.ts. import { serve } from "https://deno.land/std@v0.40.0/http/server.ts"; const s = serve({ port: 8000 }); console.