|
|
|
@ -272,7 +272,7 @@ console.log(count++) // 0
|
|
|
|
|
console.log(count) // 1
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
We use most of the time post-increment. At leas you should remember how to use post-increment operator.
|
|
|
|
|
We use most of the time post-increment. At least you should remember how to use post-increment operator.
|
|
|
|
|
|
|
|
|
|
### Decrement Operator
|
|
|
|
|
|
|
|
|
@ -571,7 +571,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
|
|
|
|
|
1. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point(6,10)
|
|
|
|
|
1. Compare the slope of above two questions.
|
|
|
|
|
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.
|
|
|
|
|
1. Writ a script that prompt a user to enters hours and rate per hour. Calculate pay of the person?
|
|
|
|
|
1. Write a script that prompt a user to enter hours and rate per hour. Calculate pay of the person?
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
Enter hours: 40
|
|
|
|
|