mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
9 lines
214 B
TypeScript
9 lines
214 B
TypeScript
|
export function add(a: number, b: number): number {
|
||
|
return a + b;
|
||
|
}
|
||
|
|
||
|
// Learn more at https://deno.land/manual/examples/module_metadata#concepts
|
||
|
if (import.meta.main) {
|
||
|
console.log("Add 2 + 3 =", add(2, 3));
|
||
|
}
|