# 猜數字遊戲
### 比較運算子
1. 相同時, 回應恭喜猜對了
2. 使用者輸入的數字比較小時,回應猜大一點
3.使用者輸入的數字比較大時,回應猜小一點 。
```javascipt=
Math.Random()
if (answer=== number)
else if(answer< number)
else if(answer>number)
```
if (A===B), if true, message appear
else if(A<B)if true, message appear
else if (A>B)if true, message appear
else except type number in the box, then maybe all become false
### 邏輯運算子
1.After 7:00 P.M. to 9:00, 便當X70%
2.At 9:00 A.M. and 3:00 P.M. appear 買一送一
3.Other times appear "Do you want a 便當"
&&運算子
左邊的條件式微true爾且右邊的條件也是true
||運算子
左邊的條件式微true or右邊的條件才是true