text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
JavaScript we've seen a bunch of
5,271.769
3.301
different ways of representing data we
5,273.539
3.39
store data in variables and those
5,275.07
3.48
variables have had types like integers
5,276.929
3.9
those variables of sum has been strings
5,278.55
4.409
and some times have been HTML elements
5,280.829
4.471
sometimes they've been arrays or lists
5,282.959
4.051
of our items sometimes they've even been
5,285.3
3.359
functions so we can set a variable equal
5,287.01
3.569
to a function but perhaps one of the
5,288.659
4.32
most useful data types inside of
5,290.579
5.73
JavaScript is the JavaScript object so
5,292.979
4.801
go into the JavaScript console just to
5,296.309
3.451
demonstrate this what the JavaScript
5,297.78
4.529
object is is it's really the equivalent
5,299.76
4.799
of like a Python dictionary some
5,302.309
5.07
Association of keys to values where you
5,304.559
4.44
can look up something by a key or by a
5,307.379
4.651
property and see what his value happens
5,308.999
6
to be so if I had a variable like person
5,312.03
5.909
I could set person equal to a JavaScript
5,314.999
6.42
object who's like first name is Harry
5,317.939
7.65
and whose last name is Potter again
5,321.419
6.93
using syntax very similar to what the
5,325.589
5.04
dictionary syntax looks like inside of
5,328.349
4.86
Python as well and now that I have this
5,330.629
5.01
variable person which is first Harry
5,333.209
4.95
last Potter I can access a particular
5,335.639
4.08
property of the person in a number of
5,338.159
3.51
ways I can say something like person dot
5,339.719
3.78
first to say get me the first name
5,341.669
4.56
property of this particular object and I
5,343.499
4.59
see that it's equal to Harry I could
5,346.229
3.66
equivalently use square bracket notation
5,348.089
3.961
the way Python does square bracket first
5,349.889
4.29
and that will also give me Harry
5,352.05
4.53
but this turns out to be quite powerful
5,354.179
4.741
to be able to represent data in this
5,356.58
4.23
structured way like this where I have an
5,358.92
3.63
association of keys or otherwise known
5,360.81
4.11
as properties with particular values and
5,362.55
4.02
then I have the ability given a
5,364.92
4.23
JavaScript object to be able to access a
5,366.57
4.68
particular value and it turns out that
5,369.15
3.93
one of the ways this is most useful is
5,371.25
4.14
in the exchange of data moving data
5,373.08
5.07
around from one service to another and
5,375.39
4.65
so here we're going to introduce what
5,378.15
3.81
are known as api's otherwise known as
5,380.04
4.26
application programming interfaces which
5,381.96
4.41
in the context of the web you can think
5,384.3
4.14
of as some well-defined structured way
5,386.37
4.26
for services on the Internet to
5,388.44
4.11
communicate with each other that if you
5,390.63
4.02
want your application to be able to talk
5,392.55
3.899
to some other service maybe you want
5,394.65
3.72
your application to interact with Google
5,396.449
3.361
Maps or to be able to interact with
5,398.37
3.3
Amazon or some other weather service to
5,399.81
3.48
get the day's weather then you might be
5,401.67
4.23
able to access some API some mechanism
5,403.29
4.409
whereby you can communicate with another
5,405.9
3.72
service by sending a request and
5,407.699
4.351
receiving back data in some sort of very
5,409.62
4.89
well structured format and very often
5,412.05
4.56
that well structured format happens to
5,414.51
4.05
be a particular type of data known as
5,416.61
3.96
Jason which stands for JavaScript object
5,418.56
4.679
notation which is a way of transferring
5,420.57
6
data in the form of JavaScript objects
5,423.239
5.611
these sort of objects that happen to
5,426.57
4.47
have properties and values associated
5,428.85
4.74
with them and so what does javascript
5,431.04
4.29
object notation look like well if we
5,433.59
3
think back to the applications that
5,435.33
2.67
we've been creating these applications
5,436.59
2.97
that are able to represent things like
5,438
4.17
an airline and many movements of planes
5,439.56
4.38
between particular destinations a
5,442.17
4.41
JavaScript object representing a flight
5,443.94
4.32
might look something like this
5,446.58
3.48
a JavaScript object that has properties
5,448.26
4.74
for origin is something destination is
5,450.06
4.889
something duration is something things
5,453
3.84
we've seen before but you might imagine
5,454.949
4.02
that if we wanted our airline to be able
5,456.84
3.87
to make its data available to other
5,458.969
3.811
services so that other web applications
5,460.71
4.35
or other programs could programmatically
5,462.78
4.5
access information about flights we
5,465.06
5.07
could pass data in this format to those
5,467.28
5.01
other applications so that they could
5,470.13
3.779
then treat this as a JavaScript object
5,472.29
3.84
and get access to the information about
5,473.909
3.631
it and the nice thing about this
5,476.13
3.839
particular representation is that it is
5,477.54
4.86
both human readable and machine readable
5,479.969
4.17
that we as people can look at this and
5,482.4
3.48
get an intuitive understanding for what
5,484.139
3.901
all of this means but also a computer
5,485.88
3.84