We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6db44 commit 49de844Copy full SHA for 49de844
add-inputs/index.js
@@ -13,13 +13,13 @@ const toNumber = e => Number(e.target.value)
13
const renderResult = result => { resultNode.textContent = result }
14
15
// x represents the current value of xInput
16
-var x = input(xInput).map(toNumber).startWith(0)
+const x = input(xInput).map(toNumber).startWith(0)
17
18
// x represents the current value of yInput
19
-var y = input(yInput).map(toNumber).startWith(0)
+const y = input(yInput).map(toNumber).startWith(0)
20
21
// result is the live current value of adding x and y
22
-var result = combine(add, x, y)
+const result = combine(add, x, y)
23
24
// Observe the result value by rendering it to the resultNode
25
result.observe(renderResult)
0 commit comments