diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/bolme.js b/bolme.js new file mode 100644 index 0000000..deabece --- /dev/null +++ b/bolme.js @@ -0,0 +1,9 @@ +function bolme(a, b) { + return { + functionName: "bölme", + result: a / b, + }; +} + +export {bolme} + diff --git a/calculator.js b/calculator.js index 767a9be..9730b9b 100644 --- a/calculator.js +++ b/calculator.js @@ -1,7 +1,16 @@ import {topla} from "./toplama.js" - +import {carpma} from "./carpma.js" +import {bolme} from "./bolme.js" -let resultArray = [topla(2, 3)]; +let resultArray = [topla(2, 3),carpma(10,5)]; +import { bolme } from "./bolme.js"; + +let resultArray = [ + topla(2, 3), + carpma(10, 5), + bolme(15, 5) + bolme(20,4) +]; diff --git a/carpma.js b/carpma.js new file mode 100644 index 0000000..9e260b3 --- /dev/null +++ b/carpma.js @@ -0,0 +1,9 @@ +//deneme +function carpma(a, b) { + return { + functionName: "çarpma", + result: a * b, + }; +} + +export {carpma} diff --git a/index.html b/index.html index 8f563c3..1069ab7 100644 --- a/index.html +++ b/index.html @@ -17,4 +17,6 @@ + +