[<< Day 2](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/02_Day/02_day_data_types.md) | [Day 4 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md)
[<< Day 2](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/02_Day/02_day_data_types.md) | [Day 4 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md)
--


@ -52,10 +51,10 @@ A boolean data type represents one of the two values:_true_ or _false_. Boolean
**Example: Boolean Values**
**Example: Boolean Values**
```js
```js
let isLightOn = true;
let isLightOn = true
let isRaining = false;
let isRaining = false
let isHungry = false;
let isHungry = false
let isMarried = true;
let isMarried = true
let truValue = 4 > 3 // true
let truValue = 4 > 3 // true
let falseValue = 3 <4//false
let falseValue = 3 <4//false
```
```
@ -85,15 +84,15 @@ It is good to remember those truthy values and falsy values. In later section, w
If we declare a variable and if we do not assign a value, the value will be undefined. In addition to this, if a function is not returning the value will be undefined.
If we declare a variable and if we do not assign a value, the value will be undefined. In addition to this, if a function is not returning the value will be undefined.
```js
```js
let firstName;
let firstName
console.log(firstName); //not defined, because it is not assigned to a value yet
console.log(firstName) //not defined, because it is not assigned to a value yet
```
```
## Null
## Null
```js
```js
let empty = null;
let empty = null
console.log(empty); // -> null , means no value
console.log(empty) // -> null , means no value
```
```
## Operators
## Operators
@ -117,36 +116,38 @@ Arithmetic operators are mathematical operators.
2. Get length and width using prompt and calculate an area of rectangle (area = length x width and the perimeter of rectangle (perimeter = 2 x (length + width))
1. Get length and width using prompt and calculate an area of rectangle (area = length x width and the perimeter of rectangle (perimeter = 2 x (length + width))
3. Get radius using prompt and calculate the area of a circle (area = pi x r x r) and circumference of a circle(c = 2 x pi x r) where pi = 3.14.
1. Get radius using prompt and calculate the area of a circle (area = pi x r x r) and circumference of a circle(c = 2 x pi x r) where pi = 3.14.
4. Calculate the slope, x-intercept and y-intercept of y = 2x -2
1. Calculate the slope, x-intercept and y-intercept of y = 2x -2
5. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point(6,10)
1. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point(6,10)
6. Compare the slope of above two questions.
1. Compare the slope of above two questions.
7. Calculate the value of y (y = x^2 + 6x + 9). Try to use different x values and figure out at what x value y is 0.
1. Calculate the value of y (y = x^2 + 6x + 9). Try to use different x values and figure out at what x value y is 0.
8. Writ a script that prompt a user to enters hours and rate per hour. Calculate pay of the person?
1. Writ a script that prompt a user to enters hours and rate per hour. Calculate pay of the person?
9. Write a script that prompt the user to enter number of years. Calculate the number of seconds a person can live. Assume some one lives just hundred years
1. Write a script that prompt the user to enter number of years. Calculate the number of seconds a person can live. Assume some one lives just hundred years
```sh
```sh
Enter number of yours you live: 100
Enter number of yours you live: 100
@ -552,7 +551,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'
1. 4 === '4'
1. 4 === '4'
Find the length of python and jargon and make a falsy comparison statement.
Find the length of python and jargon and make a falsy comparison statement.