pull/14/head
Asabeneh 5 years ago
parent d0b95e7c4d
commit ce6b9fc96d

@ -71,12 +71,12 @@
- [Getting seconds](#getting-seconds) - [Getting seconds](#getting-seconds)
- [Getting time](#getting-time) - [Getting time](#getting-time)
- [💻 Day 3: Exercises](#%f0%9f%92%bb-day-3-exercises) - [💻 Day 3: Exercises](#%f0%9f%92%bb-day-3-exercises)
- [Exercises: Data types Part](#exercises-data-types-part) - [1. Exercises: Data types Part](#1-exercises-data-types-part)
- [Exercises: Arithmetic Operators Part](#exercises-arithmetic-operators-part) - [2. Exercises: Arithmetic Operators Part](#2-exercises-arithmetic-operators-part)
- [Exercises: Booleans Part](#exercises-booleans-part) - [3. Exercises: Booleans Part](#3-exercises-booleans-part)
- [Exercises: Comparison Operators](#exercises-comparison-operators) - [4. Exercises: Comparison Operators](#4-exercises-comparison-operators)
- [Exercises: Logical Operators](#exercises-logical-operators) - [5. Exercises: Logical Operators](#5-exercises-logical-operators)
- [Exercises: Date time Object](#exercises-date-time-object) - [6. Exercises: Date time Object](#6-exercises-date-time-object)
# 📔Day 1 # 📔Day 1
@ -1381,12 +1381,12 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
``` ```
# 💻 Day 3: Exercises # 💻 Day 3: Exercises
## Exercises: Data types Part ## 1. Exercises: Data types Part
1. Declare firstName, lastName, country, city, age, isMarried, year variable and assign value to it 1. Declare firstName, lastName, country, city, age, isMarried, year variable and assign value to it
1. The JavaScript typeof operator uses to check different data types. Check the data type of each variables from question number 1. 1. The JavaScript typeof operator uses to check different data types. Check the data type of each variables from question number 1.
## Exercises: Arithmetic Operators Part ## 2. Exercises: Arithmetic Operators Part
JavaScript arithmetic operators are addition(+), subtraction(-), multiplication(*), division(/), modulus(%), exponential(**), increment(++) and decrement(--). JavaScript arithmetic operators are addition(+), subtraction(-), multiplication(*), division(/), modulus(%), exponential(**), increment(++) and decrement(--).
```js ```js
@ -1395,14 +1395,14 @@ let operandTwo = 3;
``` ```
Using the above operands apply different JavaScript arithmetic operations. Using the above operands apply different JavaScript arithmetic operations.
## Exercises: Booleans Part ## 3. Exercises: Booleans Part
Boolean value is either true or false. Boolean value is either true or false.
1. Write three JavaScript statement which provide truthy value. 1. Write three JavaScript statement which provide truthy value.
1. Write three JavaScript statement which provide falsy value. 1. Write three JavaScript statement which provide falsy value.
## Exercises: Comparison Operators ## 4. Exercises: Comparison Operators
Figure out the result of the following comparison expression first without using console.log(). After you decide the result confirm it using console.log() Figure out the result of the following comparison expression first without using console.log(). After you decide the result confirm it using console.log()
@ -1418,7 +1418,7 @@ Figure out the result of the following comparison expression first without using
1. 4 == '4' 1. 4 == '4'
1. 4 === '4' 1. 4 === '4'
## Exercises: Logical Operators ## 5. Exercises: Logical Operators
Figure out the result of the following expressions first without using console.log(). After you decide the result confirm it by using console.log() Figure out the result of the following expressions first without using console.log(). After you decide the result confirm it by using console.log()
1. 4 > 3 && 10 < 12 1. 4 > 3 && 10 < 12
1. 4 > 3 && 10 > 12 1. 4 > 3 && 10 > 12
@ -1430,7 +1430,7 @@ Figure out the result of the following expressions first without using console.l
1. !(4 > 3 && 10 < 12) 1. !(4 > 3 && 10 < 12)
1. !(4 > 3 && 10 > 12) 1. !(4 > 3 && 10 > 12)
1. !(4 === '4') 1. !(4 === '4')
## Exercises: Date time Object ## 6. Exercises: Date time Object
1. What is the year today? 1. What is the year today?
1. What is the month today? 1. What is the month today?
1. What is the date today? 1. What is the date today?

Loading…
Cancel
Save