marp-template/snippets/sum.ts

6 lines
80 B
TypeScript
Raw Permalink Normal View History

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