marp-template/snippets/sum.ts
2023-11-16 15:46:19 +01:00

6 lines
80 B
TypeScript

function add(a: number, b: number) {
return a + b
}
const c = add(1, 2) // 3