Skip to content

Commit 913bed9

Browse files
committed
feat: add new functions
1 parent 0bc6e65 commit 913bed9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,36 @@ function potencia(a, b) {
1818
return Math.pow(a, b);
1919
}
2020

21+
function dobra(a) {
22+
return a * 2;
23+
}
24+
25+
function triplica(a) {
26+
return a * 3;
27+
}
28+
29+
function adiciona100(a) {
30+
return a + 100;
31+
}
32+
33+
function adiciona200(a) {
34+
return a + 200;
35+
}
36+
37+
function adiciona300(a) {
38+
return a + 300;
39+
}
40+
2141
module.exports = {
2242
soma,
2343
multiplicacao,
2444
subtracao,
2545
potencia,
2646
divisao,
47+
adiciona100,
48+
adiciona200,
49+
adiciona300,
50+
dobra,
51+
potencia,
52+
triplica,
2753
};

0 commit comments

Comments
 (0)