feat: Add Deno example with basic addition function and test
This commit is contained in:
8
deno/main.ts
Normal file
8
deno/main.ts
Normal 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));
|
||||
}
|
||||
Reference in New Issue
Block a user