comparison: main.ts
main.ts
- changeset 0
- a3bb50016d6f
equal
deleted
inserted
replaced
| |
1 export function add(a: number, b: number): number { |
| |
2 return a + b; |
| |
3 } |
| |
4 |
| |
5 // Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts |
| |
6 if (import.meta.main) { |
| |
7 console.log("Add 2 + 3 =", add(2, 3)); |
| |
8 } |