1
00:00:01,278 --> 00:00:02,973
We have one more thing to talk about when

2
00:00:02,973 --> 00:00:04,665
we're talking about all the different

3
00:00:04,665 --> 00:00:07,732
operators, and that's order of precedence,

4
00:00:07,732 --> 00:00:10,236
so which order things get evaluated in

5
00:00:10,236 --> 00:00:13,146
when you have a big, long, complicated

6
00:00:13,146 --> 00:00:14,545
expression. Well, obviously grouping

7
00:00:14,545 --> 00:00:17,997
first, so you can group things by using

8
00:00:17,997 --> 00:00:20,773
parentheses, then not, then

9
00:00:20,773 --> 00:00:23,428
multiplication, then division, then

10
00:00:23,428 --> 00:00:25,954
modulus, then addition, then subtraction.

11
00:00:25,954 --> 00:00:28,395
So all of these arithmetic ones happen in

12
00:00:28,395 --> 00:00:31,354
the order they occur, left to right. We

13
00:00:31,354 --> 00:00:33,366
then have less than, less than or equal

14
00:00:33,366 --> 00:00:35,683
to, greater than, greater than or equal

15
00:00:35,683 --> 00:00:39,994
to, equal, not equal, strict equal, strict

16
00:00:39,994 --> 00:00:45,400
not equal. We then have and, or, and then

17
00:00:45,400 --> 00:00:48,097
finally assignment. So there is an order

18
00:00:48,097 --> 00:00:50,338
to which things occur. So you can look

19
00:00:50,338 --> 00:00:52,176
this up on the internet. There's a lot of

20
00:00:52,176 --> 00:00:53,491
people that have put some really good

21
00:00:53,491 --> 00:00:55,936
examples out there. It would be a good way

22
00:00:55,936 --> 00:00:58,685
to test your knowledge. In this module, we

23
00:00:58,685 --> 00:01:01,721
learned about truthy and falsy. True is a

24
00:01:01,721 --> 00:01:04,407
Boolean true or any variable that has some

25
00:01:04,407 --> 00:01:07,726
sort of value, whereas false is false,

26
00:01:07,726 --> 00:01:11,834
null, undefined, not a number, and an

27
00:01:11,834 --> 00:01:14,938
empty string. Logical operators and, or,

28
00:01:14,938 --> 00:01:18,133
and not help you make complicated

29
00:01:18,133 --> 00:01:20,941
decisions, but remember short circuiting

30
00:01:20,941 --> 00:01:23,338
because that's going to determine if one

31
00:01:23,338 --> 00:01:25,612
side of that expressions runs. And if that

32
00:01:25,612 --> 00:01:27,747
side of the expression is a function, that

33
00:01:27,747 --> 00:01:31,421
may or may not run that function. Coming

34
00:01:31,421 --> 00:01:33,515
up in the next module, we're going to talk

35
00:01:33,515 --> 00:01:35,777
about exception handling. We'll talk about

36
00:01:35,777 --> 00:01:41,000
try…catch and finally. I hope you'll join me for the next module.

