mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
4 lines
138 B
JavaScript
4 lines
138 B
JavaScript
const sq = (x) => x * x
|
|
const add = (a, b = 10) => { return a + b }
|
|
const obj = () => ({ k: 1 })
|
|
return [sq(4), add(1), add(1, 2), obj()]
|