marp-template/snippets/sum.ts

6 lines
80 B
TypeScript
Raw Normal View History

2023-11-10 16:03:10 +01:00
function add(a: number, b: number) {
return a + b
}
const c = add(1, 2) // 3