feat: Add Deno example with basic addition function and test

This commit is contained in:
Mauricio Siu
2025-02-23 19:45:32 -06:00
parent be3f772f0b
commit b51803b1d8
4 changed files with 44 additions and 0 deletions

8
deno/main.ts Normal file
View File

@@ -0,0 +1,8 @@
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));
}