From 78ea187376ddc1eb2c6bb88fe9d6326ecdc09da5 Mon Sep 17 00:00:00 2001 From: Vladislav Kyian Date: Thu, 17 Nov 2022 18:03:38 +0200 Subject: [PATCH] Homework solution #1 --- .../1-basics/basics.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 homeworks/vladislav.kyian_vladkiyan23/1-basics/basics.js diff --git a/homeworks/vladislav.kyian_vladkiyan23/1-basics/basics.js b/homeworks/vladislav.kyian_vladkiyan23/1-basics/basics.js new file mode 100644 index 00000000..bda3992a --- /dev/null +++ b/homeworks/vladislav.kyian_vladkiyan23/1-basics/basics.js @@ -0,0 +1,17 @@ +const firstNumber = 10; +const secondNumber = 15; +const thirdNumber = 0; + +const additionResult = firstNumber + secondNumber; +const subtractionResult = firstNumber - secondNumber; +const multiplyResult = firstNumber * secondNumber; +const divisionResult = firstNumber / thirdNumber; +const remainderOfTheDivison = secondNumber % firstNumber; +const exponentiationResult = firstNumber ** secondNumber; + +console.log(additionResult); +console.log(subtractionResult); +console.log(multiplyResult); +console.log(divisionResult); +console.log(remainderOfTheDivison); +console.log(exponentiationResult); \ No newline at end of file