Skip to content

Commit

Permalink
Merge pull request #1 from olgadobrodii/1-basics
Browse files Browse the repository at this point in the history
1 basics
  • Loading branch information
olgadobrodii authored Nov 28, 2022
2 parents fffaa7f + 759b778 commit 87f5334
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions homeworks/olha.dobrodii_olgadobrodii/1-basics/basics.js
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);

0 comments on commit 87f5334

Please sign in to comment.