@anonymous/

RundownRoastedVideogame

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const makeDate = (a, b) => {
  return {
    a,
    b,
    c: a + b,
    setA: n => makeDate(n, b)
  }
}

const hoge = makeDate(1, 2)
const hoge2 = hoge.setA(5)
console.log(hoge.c)
console.log(hoge2.c)