examples/deno/main.ts
2025-02-23 19:50:03 -06:00

11 lines
276 B
TypeScript

export function add(a: number, b: number): number {
return a + b;
}
// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
if (import.meta.main) {
console.log("Add 2 + 3 =", add(2, 3));
}
Deno.serve(() => new Response("Hello, world!"));