-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from olgadobrodii/1-basics
1 basics
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Cтворення перемінних | ||
const year = 2022; | ||
const day = 18; | ||
const month = 'November'; | ||
|
||
// Додавання + | ||
const adding = year + day; | ||
console.log(adding); | ||
|
||
const addingString = day + month; | ||
console.log(addingString); | ||
|
||
// Віднімання - | ||
const subtraction = year - day; | ||
console.log(subtraction); | ||
|
||
// Множення * | ||
const multiplication = year * day; | ||
console.log(multiplication); | ||
|
||
// Ділення / | ||
const division = year / day; | ||
console.log(division); | ||
|
||
// Остача від ділення % | ||
const remainder = year % day; | ||
console.log(remainder); | ||
|
||
// Піднесення до степеня ** | ||
const exponentiation = year ** day; | ||
console.log(exponentiation); |