1
00:00:02,070 --> 00:00:08,670
What's up everybody in this exciting episode we're going to talk about variable's operators and a little

2
00:00:08,670 --> 00:00:10,050
bit about how computers work.

3
00:00:10,050 --> 00:00:14,670
Now this is not a theoretical course but I do want you to understand some of the basic principles that

4
00:00:14,670 --> 00:00:18,590
are happening underneath the hood so you can have a foundation to build upon.

5
00:00:18,600 --> 00:00:20,450
And of course you're going to want to learn these things.

6
00:00:20,450 --> 00:00:23,400
At some point in time anyway and dive deeper into them.

7
00:00:23,430 --> 00:00:24,950
So let's go ahead and get started.

8
00:00:24,960 --> 00:00:30,150
The first thing I want to do is talk about variables so go ahead and pull up in a browser here and we're

9
00:00:30,150 --> 00:00:34,180
going to say what is a variable in programming.

10
00:00:34,470 --> 00:00:40,170
Common question popped right up and we're going to do this one right here launch schoolbooks Ruby read

11
00:00:40,170 --> 00:00:40,640
variables.

12
00:00:40,650 --> 00:00:42,090
What is a variable.

13
00:00:42,090 --> 00:00:46,430
Variables are used to store information to be referenced and manipulated in a computer program.

14
00:00:46,440 --> 00:00:47,750
That's a good definition.

15
00:00:47,760 --> 00:00:51,340
They also provide a way of labeling data with a descriptive name.

16
00:00:51,390 --> 00:00:55,740
So our programs can be understood more clearly by the reader and ourselves.

17
00:00:55,740 --> 00:01:01,570
It is helpful to think of variables as containers as a keyword as containers that hold information.

18
00:01:01,620 --> 00:01:05,310
Their sole purpose is to label and store data in memory.

19
00:01:05,310 --> 00:01:07,730
This data can then use throughout your program.

20
00:01:08,130 --> 00:01:10,510
OK so they're like a container that can hold data.

21
00:01:10,600 --> 00:01:12,460
Well what does that even mean.

22
00:01:12,630 --> 00:01:17,510
Well let's think about what's going on under the hood here and pulled my Photoshop here for you

23
00:01:20,820 --> 00:01:21,890
or you go.

24
00:01:22,370 --> 00:01:24,890
And what does that mean.

25
00:01:25,080 --> 00:01:25,950
My pen.

26
00:01:26,420 --> 00:01:27,560
So let's say

27
00:01:30,480 --> 00:01:34,350
you've got your RAM in your computer OK.

28
00:01:34,470 --> 00:01:37,820
This is your rim you know.

29
00:01:38,060 --> 00:01:43,200
You know how when you're like I need to upgrade my RAM on my computer it needs to go faster.

30
00:01:43,200 --> 00:01:46,860
You know you've heard somebody say that and you don't really you don't really know what it means or

31
00:01:46,860 --> 00:01:49,840
you just say it and say well I have more RAM means a faster computer.

32
00:01:50,130 --> 00:01:51,060
Well what does that even mean.

33
00:01:51,120 --> 00:01:55,650
You know ram ram What has that to do with variable swell.

34
00:01:55,650 --> 00:01:59,230
RAM is random access memory random.

35
00:01:59,250 --> 00:02:04,350
So it means that things are going to be stored in it randomly accessed and retrieved and things will

36
00:02:04,350 --> 00:02:05,230
be cleared out of it.

37
00:02:05,250 --> 00:02:10,870
OK so what happens is when you create a variable which you haven't seen yet but when you create a variable

38
00:02:11,310 --> 00:02:16,610
OK it is representing data that is being stored in a memory location.

39
00:02:16,890 --> 00:02:19,170
So let's say we've got a number.

40
00:02:19,380 --> 00:02:20,250
OK.

41
00:02:20,520 --> 00:02:22,830
Like the number 23.

42
00:02:22,830 --> 00:02:23,750
OK.

43
00:02:23,760 --> 00:02:28,110
And I don't know what the binary value of this but a computer is read zeros and ones.

44
00:02:28,110 --> 00:02:28,880
True or false.

45
00:02:28,890 --> 00:02:35,280
You know so this is all pretend but you know let's say this was 0 1 0 0 0 0 1 0.

46
00:02:35,280 --> 00:02:40,530
Again that's not the right value for that I can look it up online I can do it in my head sorry.

47
00:02:40,540 --> 00:02:43,500
Anyway so this is kind of hard to remember right.

48
00:02:43,560 --> 00:02:47,130
Do you do you can remember binary for every single thing that needs to happen in your program.

49
00:02:47,130 --> 00:02:48,140
Probably not.

50
00:02:48,420 --> 00:02:50,670
So what happens is we use variables.

51
00:02:50,850 --> 00:02:52,350
So we say oh 23.

52
00:02:52,350 --> 00:02:56,650
Well let's let's say this variable's name is age.

53
00:02:56,670 --> 00:03:01,540
Age is a lot easier to remember than you know 0 1 0 0 0 0 1 0 right.

54
00:03:01,560 --> 00:03:06,830
So we give a variable a name and it has a value k a name.

55
00:03:06,870 --> 00:03:12,390
So the container the value and this is stored in a memory location somewhere and who knows what that

56
00:03:12,390 --> 00:03:12,570
is.

57
00:03:12,570 --> 00:03:14,610
You know x zero.

58
00:03:14,640 --> 00:03:16,470
You know whatever.

59
00:03:17,040 --> 00:03:20,970
Ok some random access memory location in your program stores it in there.

60
00:03:20,970 --> 00:03:25,050
And then when it needs it let's say you have a calculator app OK and you type in a number will stores

61
00:03:25,050 --> 00:03:29,570
a variable somewhere in your in your app which goes onto your RAM and it's stored there.

62
00:03:29,580 --> 00:03:31,010
And then when you clear it out maybe it's gone.

63
00:03:31,020 --> 00:03:32,140
You don't need it anymore.

64
00:03:32,180 --> 00:03:33,590
So then it's clear now to your memory.

65
00:03:33,740 --> 00:03:34,450
OK.

66
00:03:34,650 --> 00:03:39,240
So when somebody says oh I need to upgrade my computer to get more RAM so my programs can run faster.

67
00:03:39,240 --> 00:03:43,780
What that really means is you may have multiple programs.

68
00:03:43,780 --> 00:03:44,190
OK.

69
00:03:45,200 --> 00:03:47,360
Let's say this is photoshop.

70
00:03:47,370 --> 00:03:50,850
OK let's say this is X code.

71
00:03:51,090 --> 00:03:53,900
Let's say this is Android studio.

72
00:03:54,030 --> 00:03:54,780
OK.

73
00:03:54,790 --> 00:03:56,500
Well all of these.

74
00:03:56,730 --> 00:03:59,760
All these programs then need spots in memory.

75
00:03:59,790 --> 00:04:03,240
So the more memory you have the more variables you've been storing the faster they're going to run because

76
00:04:03,630 --> 00:04:07,380
if you don't have enough what's going to happen is they're going to go in there and they're going to

77
00:04:07,380 --> 00:04:08,460
go on a waitlist.

78
00:04:08,510 --> 00:04:11,010
You can't go in until memory is cleared out.

79
00:04:11,010 --> 00:04:12,390
So it's going to be in a waitlist.

80
00:04:12,390 --> 00:04:16,830
So if you ever loaded a program and it's like loading and take it forever and you're like what's going

81
00:04:16,830 --> 00:04:17,130
on.

82
00:04:17,160 --> 00:04:22,770
Well it could be that you don't have enough RAM and all these programs are trying to save data in your

83
00:04:22,770 --> 00:04:25,840
random access memory and it can't because there's not enough space.

84
00:04:26,040 --> 00:04:29,570
OK so a variables a container that has a value of some kind.

85
00:04:29,910 --> 00:04:36,480
And the container references a point in memory a memory location and it helps us to write readable code

86
00:04:36,510 --> 00:04:41,370
so we don't have to do things like this so we don't have to understand this kind of stuff because I

87
00:04:41,370 --> 00:04:42,860
surely can't understand it.

88
00:04:42,870 --> 00:04:47,190
So that's kind of how computers work with variables and applications they store data how they retrieve

89
00:04:47,190 --> 00:04:47,730
data.

90
00:04:47,940 --> 00:04:54,090
But you get to use readable variables appear at the top that will make your life much easier than having

91
00:04:54,090 --> 00:04:55,460
to remember anything else.

92
00:04:55,620 --> 00:05:00,230
OK so that's variables in a nutshell and I'm going to close out now.

93
00:05:01,650 --> 00:05:05,060
So we've talked about variables bullishly what a variable actually is.

94
00:05:05,060 --> 00:05:09,790
Go ahead and open up your Ex code exco.

95
00:05:10,520 --> 00:05:16,820
And we're going to go ahead and get started with the playground and I'm going to call this variable's

96
00:05:19,200 --> 00:05:22,410
and let's store this in the folder.

97
00:05:22,590 --> 00:05:29,980
Oh great new folder called variables and create.

98
00:05:30,080 --> 00:05:36,200
So by default your playground your ex-coach playground will actually give you a variable inheritance

99
00:05:37,150 --> 00:05:38,470
bar.

100
00:05:38,680 --> 00:05:40,120
Var is short for variable.

101
00:05:40,130 --> 00:05:42,350
You're telling the program hey this is a variable.

102
00:05:42,380 --> 00:05:45,410
It's a container that I want to put data in.

103
00:05:45,590 --> 00:05:46,390
And what's this.

104
00:05:46,400 --> 00:05:49,280
This is the name we can call this whatever we want.

105
00:05:49,280 --> 00:05:53,360
There are some things that are aren't allowed.

106
00:05:54,470 --> 00:05:56,580
We can't put numbers in the front of a variable name.

107
00:05:56,750 --> 00:06:00,760
OK but you can use words and then number like day one you can do things like that.

108
00:06:00,770 --> 00:06:03,580
But in our case we want to write the word message.

109
00:06:03,620 --> 00:06:05,550
Variables should always be descriptive.

110
00:06:05,640 --> 00:06:05,970
OK.

111
00:06:06,000 --> 00:06:07,670
It should be descriptive.

112
00:06:07,670 --> 00:06:10,250
They should tell you what's being stored in there.

113
00:06:10,430 --> 00:06:15,680
And then we're storing some words and this is called a string specifically when there's two quotes.

114
00:06:15,680 --> 00:06:17,120
That is called a string.

115
00:06:17,210 --> 00:06:21,080
And the key term if you're really interested is a string literal.

116
00:06:21,080 --> 00:06:24,850
This is a string literal that is being created right here on the fly.

117
00:06:25,160 --> 00:06:30,210
And it says hello playground and the playground is kindly printing this up to the screen for us.

118
00:06:30,210 --> 00:06:36,450
So this is your very first variable and this is a string to the data type is a string characters words.

119
00:06:36,680 --> 00:06:41,460
And this is being stored in the variable and then underneath the hood when your program is running.

120
00:06:41,640 --> 00:06:43,370
This will actually even right now.

121
00:06:43,430 --> 00:06:45,410
This program is running on our Mac.

122
00:06:45,410 --> 00:06:48,290
And so this is actually being stored.

123
00:06:48,290 --> 00:06:53,730
This is being stored in the memory on the computer somewhere which is pretty cool.

124
00:06:53,780 --> 00:06:54,920
I think it's cool.

125
00:06:54,980 --> 00:07:00,890
And so that's happening for us automatically and maybe you're wondering up here what is import you like

126
00:07:00,890 --> 00:07:01,540
it.

127
00:07:01,550 --> 00:07:06,310
Well import means somebody else wrote a lot of code for us in this case Apple.

128
00:07:06,380 --> 00:07:10,190
There are a lot of code and we're importing it so we can use it.

129
00:07:10,310 --> 00:07:16,100
So you like it lets us use the cool features of iOS like views and pop ups and screens and view controllers

130
00:07:16,550 --> 00:07:20,950
and that's all included here inside of this a bunch of code that they wrote and we're bringing it in.

131
00:07:20,990 --> 00:07:27,260
It also includes a framework called Foundation which includes Swift which lets us do things like this

132
00:07:27,660 --> 00:07:28,880
which is pretty cool.

133
00:07:28,880 --> 00:07:33,530
So that's your very first variable we gave it a descriptive name we started it off with a keyword specifying

134
00:07:33,530 --> 00:07:37,700
var and then we said hello playground variables can be changed.

135
00:07:38,030 --> 00:07:39,960
OK areas can be changed.

136
00:07:40,010 --> 00:07:42,250
Whereas something called a constant cannot.

137
00:07:42,450 --> 00:07:43,220
OK.

138
00:07:43,480 --> 00:07:46,010
Variables we change as many times as you want though.

139
00:07:53,160 --> 00:07:57,030
And the only thing that that we didn't cover was this the equal sign.

140
00:07:57,030 --> 00:08:01,890
This is called an assignment operator and that's the keyword if you want to write that down is the assignment

141
00:08:01,920 --> 00:08:08,880
operator and what the assignment operator does is it is signs a value from the right hand side into

142
00:08:08,880 --> 00:08:10,460
something on the left hand side.

143
00:08:10,560 --> 00:08:11,730
Typically a variable.

144
00:08:11,730 --> 00:08:16,030
So that means we are taking something over here and we are putting it over here.

145
00:08:16,140 --> 00:08:16,460
OK.

146
00:08:16,470 --> 00:08:18,020
The assignment operator.

147
00:08:18,300 --> 00:08:20,350
So a sock about operators for a minute.

148
00:08:20,370 --> 00:08:21,900
We've talked about variables and how they work.

149
00:08:21,900 --> 00:08:24,000
Let's talk about operators.

150
00:08:24,720 --> 00:08:29,690
So there are three types of operators in swift or most languages anyway.

151
00:08:29,810 --> 00:08:30,170
So

152
00:08:33,720 --> 00:08:40,080
there are very binary and ternary.

153
00:08:40,260 --> 00:08:41,300
What does that even mean.

154
00:08:41,340 --> 00:08:43,090
That is a very good question.

155
00:08:44,140 --> 00:08:47,430
Ternary operator only works on one target.

156
00:08:47,530 --> 00:08:54,960
So if you look at this right here OK this is a urinary operator.

157
00:08:54,960 --> 00:08:57,480
No it's actually a binary because it works on two.

158
00:08:57,480 --> 00:08:59,260
And look at the keyword or the prefix here.

159
00:08:59,280 --> 00:09:01,580
By no means two.

160
00:09:01,690 --> 00:09:04,300
OK so this works on two.

161
00:09:04,300 --> 00:09:05,160
So this is a binary.

162
00:09:05,170 --> 00:09:06,180
But what is a urinary.

163
00:09:06,190 --> 00:09:08,600
What are your great works on a single operator.

164
00:09:08,680 --> 00:09:16,430
And so for instance you can have a variable that's called a boolean So you know.

165
00:09:16,570 --> 00:09:17,840
Am I cool.

166
00:09:17,890 --> 00:09:20,420
This is a variable called emic cool.

167
00:09:20,620 --> 00:09:23,180
And we're going to say equals true.

168
00:09:23,620 --> 00:09:25,650
OK that's that's pretty cool.

169
00:09:26,050 --> 00:09:26,920
I'm cool.

170
00:09:27,080 --> 00:09:33,380
But you know then some new phase or fad comes out and new clothes and I haven't upgraded yet.

171
00:09:33,580 --> 00:09:35,120
So now I'm uncool.

172
00:09:35,230 --> 00:09:39,020
Well we can use a urinary prefix operator.

173
00:09:39,040 --> 00:09:39,910
You can write that down.

174
00:09:39,920 --> 00:09:49,450
Urinary prefix operator and we can say well we can say Am I cool equals not am I.

175
00:09:49,450 --> 00:09:49,900
Cool.

176
00:09:49,900 --> 00:09:52,360
So the opposite of what I am.

177
00:09:52,540 --> 00:09:56,170
So right here is this operating on one target or two targets.

178
00:09:56,200 --> 00:09:58,060
Well it's only operating on one target.

179
00:09:58,060 --> 00:09:59,030
This one right here.

180
00:09:59,050 --> 00:10:03,120
So this is a urinary OPERATOR You know Yune like unicycle.

181
00:10:03,130 --> 00:10:03,950
OK.

182
00:10:04,260 --> 00:10:05,010
One.

183
00:10:05,050 --> 00:10:09,140
So what we're saying here is am I cool that's true.

184
00:10:09,140 --> 00:10:10,450
We're saying the opposite.

185
00:10:10,460 --> 00:10:11,240
Not Am I cool.

186
00:10:11,240 --> 00:10:14,720
So we're saying false and then we're shoving it back into here.

187
00:10:14,810 --> 00:10:16,490
So now my cool is false.

188
00:10:16,490 --> 00:10:19,600
I'm no longer cool because some new fad came out.

189
00:10:19,610 --> 00:10:26,390
You know maybe back in the day like in 2006 when Paris Hilton like put on this big huge aviator sunglasses

190
00:10:26,420 --> 00:10:28,920
and before that no one had seen those since like the 70s.

191
00:10:29,060 --> 00:10:34,310
And then all of a sudden every girl on the street in the world like within one week had big aviator

192
00:10:34,310 --> 00:10:34,840
glasses.

193
00:10:34,850 --> 00:10:35,330
OK.

194
00:10:35,540 --> 00:10:39,650
So if you didn't have them you're uncool just like I'm cool here because this new thing came out and

195
00:10:39,650 --> 00:10:40,460
I didn't adopt it.

196
00:10:40,460 --> 00:10:45,600
So you're narry Hey operates on one target binary operates on two targets.

197
00:10:45,820 --> 00:10:46,290
OK.

198
00:10:46,350 --> 00:10:49,230
A left and a right as you can see right there.

199
00:10:49,430 --> 00:10:52,010
And when you're programming you're not going to use these terms.

200
00:10:52,100 --> 00:10:56,600
But if you're going for an interview or something like that they may bring these up and ask you to define

201
00:10:56,600 --> 00:10:58,820
them so it's good to know good stuff to know.

202
00:10:59,860 --> 00:11:07,590
Actually a ternary operator works on three objects and in swift There are only there's only one ternary

203
00:11:07,950 --> 00:11:10,220
operator and I'll show you the syntax you'll use.

204
00:11:10,220 --> 00:11:14,420
As you become more advanced programmer but let's just show you for sake of completeness.

205
00:11:14,550 --> 00:11:17,070
Again you don't have to memorize all this this is just an overview.

206
00:11:17,070 --> 00:11:22,410
So what we can do here is let's see here

207
00:11:25,740 --> 00:11:32,050
we have another variable called feel good about myself.

208
00:11:32,340 --> 00:11:33,010
OK.

209
00:11:33,300 --> 00:11:34,070
Feel good about myself.

210
00:11:34,080 --> 00:11:35,350
Equals true.

211
00:11:35,580 --> 00:11:41,310
So that's a variable of type Boolean locatable in type which we'll talk about later.

212
00:11:41,310 --> 00:11:45,070
And we're storing true into this container here this variable.

213
00:11:45,120 --> 00:11:46,840
So let's do a ternary operator.

214
00:11:46,860 --> 00:11:47,920
Just for fun.

215
00:11:48,140 --> 00:11:48,740
OK.

216
00:11:48,970 --> 00:11:51,590
So feel good about myself.

217
00:11:51,840 --> 00:11:52,840
Equals.

218
00:11:53,040 --> 00:11:55,380
And we're going to say Am I cool.

219
00:11:55,590 --> 00:11:57,300
So if I am cool.

220
00:11:57,500 --> 00:11:57,940
OK.

221
00:11:57,960 --> 00:12:01,650
Question mark if I'm cool then feel good.

222
00:12:01,650 --> 00:12:05,810
Are you then true otherwise false.

223
00:12:05,820 --> 00:12:07,180
That's what we want to do.

224
00:12:07,680 --> 00:12:09,150
Maybe you're thinking what's going on here.

225
00:12:09,150 --> 00:12:13,050
This is so confusing and you shouldn't be confused if you're absolutely new to programming should not

226
00:12:13,050 --> 00:12:17,760
make any sense but I'm showing you what a ternary operators with three targets are what this is saying

227
00:12:17,760 --> 00:12:18,890
is.

228
00:12:18,960 --> 00:12:22,030
So right now I feel good about myself great right.

229
00:12:22,050 --> 00:12:25,900
But then that new fad comes out and I'm not cool anymore.

230
00:12:25,920 --> 00:12:29,600
So what we're doing here is we're saying is this true or false.

231
00:12:29,700 --> 00:12:30,920
If this is true.

232
00:12:31,210 --> 00:12:31,510
OK.

233
00:12:31,530 --> 00:12:33,440
So that's what we're saying here with the question mark.

234
00:12:33,450 --> 00:12:38,400
If this is true then let's put true in to feel good about myself because then I feel good about myself

235
00:12:38,400 --> 00:12:40,080
because I am cool.

236
00:12:40,270 --> 00:12:41,040
OK.

237
00:12:41,280 --> 00:12:51,660
And if I'm not cool otherwise false or a false into here and I no longer feel good about myself and

238
00:12:51,660 --> 00:12:53,170
I'm a very shallow person.

239
00:12:53,610 --> 00:13:02,610
So that's a turnaround operator because it works on three targets right here right here and right here.

240
00:13:02,620 --> 00:13:04,170
Does that makes sense.

241
00:13:04,170 --> 00:13:09,600
Another example is just to show you the ternary operator over time without the truth and false Let's

242
00:13:09,600 --> 00:13:21,390
say I've got a variable called bank account balance equals let's say 100 and then what we'll do is we'll

243
00:13:21,390 --> 00:13:24,680
say bank account balance.

244
00:13:24,930 --> 00:13:28,660
Actually you know what we'll do is we'll save our mess.

245
00:13:29,070 --> 00:13:30,880
Bank message.

246
00:13:31,100 --> 00:13:37,630
How about cash register message cash register message.

247
00:13:37,650 --> 00:13:38,940
Let's say we want a message.

248
00:13:38,940 --> 00:13:41,310
We're going to print out to someone who wants to buy something at a store.

249
00:13:41,310 --> 00:13:41,720
Right.

250
00:13:41,730 --> 00:13:43,020
Cash register message.

251
00:13:43,020 --> 00:13:43,700
OK.

252
00:13:43,800 --> 00:13:50,220
So it's going to equal what we're going to do is we're going to say if a bank account balance is greater

253
00:13:50,220 --> 00:14:00,420
then greater than or equal to let's say 50 has a bank account balance is greater than or equal to 50.

254
00:14:00,480 --> 00:14:04,020
And these are logical operators which we haven't covered yet.

255
00:14:04,200 --> 00:14:06,300
If it's greater than or equal to 50.

256
00:14:06,480 --> 00:14:16,890
OK what we're going to do is we're going to say you just bought the item otherwise you are broke as

257
00:14:16,890 --> 00:14:18,120
a joke.

258
00:14:18,900 --> 00:14:19,390
OK.

259
00:14:19,590 --> 00:14:25,610
So what we're saying here is we run we run a check here we do a conditional statement.

260
00:14:25,620 --> 00:14:29,310
If your bank account balance is greater than or equal to 50 maybe this is a pair of shoes you're going

261
00:14:29,310 --> 00:14:32,340
to buy then here's the question mark.

262
00:14:32,350 --> 00:14:37,100
Then we say you just bought this item so if this is true let's do this.

263
00:14:37,530 --> 00:14:40,100
Otherwise you are broke as a joke.

264
00:14:40,110 --> 00:14:45,410
So watch as I turn this item to $150 you're now broke as a joke.

265
00:14:45,410 --> 00:14:48,240
So this is again a ternary operator OK.

266
00:14:48,250 --> 00:14:50,030
There's three things happening here.

267
00:14:50,100 --> 00:14:54,860
One two and three turn every three.

268
00:14:55,020 --> 00:14:55,560
OK.

269
00:14:55,740 --> 00:14:57,530
And again this last one ternary.

270
00:14:57,890 --> 00:15:01,360
You use it less often you will use it though and you don't have to know it right now.

271
00:15:01,360 --> 00:15:03,580
If this is confusing at all that's OK.

272
00:15:03,600 --> 00:15:08,010
This stuff takes time to get down but that's a turnaround operator.

273
00:15:08,090 --> 00:15:14,180
Other operators that we'll learn about later such as arithmetic operators that's a key word or key phrase

274
00:15:14,270 --> 00:15:18,700
arithmetic operators such as adding and subtracting and dividing.

275
00:15:18,710 --> 00:15:23,500
There's also a remainder operator for doing division and then getting the remainder of the result.

276
00:15:23,690 --> 00:15:26,330
Because division does not give you remainders things like that.

277
00:15:26,370 --> 00:15:28,230
We'll talk about that later.

278
00:15:28,280 --> 00:15:32,210
This was just a synopsis of how variables work what a variable is.

279
00:15:32,240 --> 00:15:38,630
We talked a little bit about your unary operators binary operators and ternary operators and you learned

280
00:15:38,630 --> 00:15:42,290
that you can create a container called a.

281
00:15:42,710 --> 00:15:44,510
What you said variable.

282
00:15:44,510 --> 00:15:45,760
That's right.

283
00:15:45,830 --> 00:15:48,660
And so you create a variable by starting with the Barkey word.

284
00:15:48,860 --> 00:15:53,990
Then you give the container a name message and then you can store a value into that.

285
00:15:53,990 --> 00:16:00,200
You know such as a string this is called a string of characters in words or a boolean true or false

286
00:16:00,500 --> 00:16:06,740
or a number even you can assign in there using the assignment operator which is a binary operator because

287
00:16:06,740 --> 00:16:08,740
it works on two targets.

288
00:16:08,780 --> 00:16:13,200
And again this is a unitary operator because it works on one target.

289
00:16:13,200 --> 00:16:15,790
So cool stuff here.

290
00:16:16,100 --> 00:16:20,060
It's fun to learn about these things you should dig more into it go on the Internet and search about

291
00:16:20,060 --> 00:16:25,100
your Noori operettas binary operators turn or go back to that Google search on what is a variable in

292
00:16:25,100 --> 00:16:27,430
programming it's so important to know these things.

293
00:16:27,560 --> 00:16:32,040
And I always say that over and over again because you want to become a good programmer.

294
00:16:32,330 --> 00:16:33,690
So that's it for now.

295
00:16:33,740 --> 00:16:40,590
Marc price of slopes dot com and we are putting the doors into a brand new world of magic and exciting

296
00:16:43,060 --> 00:16:43,920
you later.

