Skip to content

Commit 94bce76

Browse files
author
Anubhav Saini
committed
Fix chainable example usage.
1 parent b8092a4 commit 94bce76

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Chaining/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ <h2>Source</h2>
1111

1212
let chainable = new Chainable();
1313

14-
console.log(chainable.add(3));
15-
console.log(chainable.add(4));
16-
console.log(chainable.multiply(3));
14+
console.log(chainable.add(3).add(4).multiply(3));
1715
</pre>
1816
</div>
1917
<div id="console">

Chaining/scripts/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import Chainable from './Chainable';
22

33
let chainable = new Chainable();
44

5-
console.log(chainable.add(3));
6-
console.log(chainable.add(4));
7-
console.log(chainable.multiply(3));
5+
console.log(chainable.add(3).add(4).multiply(3));

0 commit comments

Comments
 (0)