Skip to content

Commit ecc36d4

Browse files
committed
Done.
1 parent 8faaa0a commit ecc36d4

12 files changed

+37
-0
lines changed

Diff for: .editorconfig

100644100755
File mode changed.

Diff for: .gitignore

100644100755
File mode changed.

Diff for: .learn

100644100755
File mode changed.

Diff for: CONTRIBUTING.md

100644100755
File mode changed.

Diff for: LICENSE.md

100644100755
File mode changed.

Diff for: README.md

100644100755
File mode changed.

Diff for: index.html

100644100755
File mode changed.

Diff for: index.js

100644100755
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
function add(a,b) {
2+
return a+b
3+
}
4+
5+
function subtract(a,b) {
6+
return a-b
7+
}
8+
9+
function multiply(a,b) {
10+
return a*b
11+
}
12+
13+
function divide(a,b) {
14+
return a/b
15+
}
16+
17+
function inc(n) {
18+
n +=1
19+
return n
20+
}
21+
22+
function dec(n) {
23+
n -=1
24+
return n
25+
}
26+
27+
function makeInt(n) {
28+
return parseFloat(n)
29+
}
30+
31+
function makeInt(n) {
32+
return parseInt(n,10)
33+
}
34+
35+
function preserveDecimal(n) {
36+
return parseFloat(n)
37+
}

Diff for: package.json

100644100755
File mode changed.

Diff for: test/index-test.js

100644100755
File mode changed.

Diff for: test/mocha.opts

100644100755
File mode changed.

Diff for: test/root.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)