All language subtitles for 004 Inside the Engine_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Welcome back.

So we know that this thing called the JavaScript engine takes our written JavaScript code and does some

magic to tell the computer to do what we want it to do.

So what's happening inside of this engine?

And here's the tricky part.

As we know, this engine can be built by anybody.

Yes, that means you can build your own JavaScript engine, but it's a lot of work.

And at the end of the day, it's just a program.

And the V8 engine, which is the most popular, most common, and some would say the fastest JavaScript

engine that the Chrome browser and Node.js uses, which we'll talk about later on.

This engine is written in C++, a low level programming language.

But let's see what's actually happening inside here.

Inside this engine, it looks something like this.

We give it a JavaScript file.

And first, as does something called lexical analysis, which breaks the code into something called

tokens to identify their meaning so that we know what the code is trying to do.

And these tokens are formed into what we call an AST.

That is an abstract syntax tree.

So we parse the code that is, we try and figure out how the text is divided up based on key words from

JavaScript, and it gets formed into this tree like structure called abstract syntax tree.

And this is a fun little tool online that you can use to demo this.

If we go to ASD Explorer dot net, I'll show you how this abstract syntax tree looks like.

And you have a bit of code here.

And as you can see, you can look at it in JSON format or you can use it the tree.

And it breaks down the program into different things that are happening.

We have a variable declaration.

A decorator.

And although this may look like gibberish right now to you, this allows the engine to understand what's

going on in the program or at least break things down one by one.

And once ends this form, it goes through something called an interpreter.

Profiler compiler and we get some sort of code which we're going to talk about later on.

And this whole engine is going to spit out some code that our CPU on our computers is going to understand

to give it instructions.

And you can think of this whole process again, which we're going to talk about in more detail coming

up as something like this.

We can create our own JavaScript engine by saying function.

And let's say Jay's engine function that takes him some code.

And this code is going to return for us.

Let's say code dot split.

And we'll use some regex here just to split up our code.

And now if I write some code here, let's say JJ's engine and we give it our code, which will be a

string that says variable A equals to five.

Look at that.

We've created a simple engine.

I know, I know there's a lot more complexities to it than that, but that's what it's doing.

We're giving it a piece of code which just gets string ified.

And then it tries and breaks things down into different parts so that maybe in this function we can

say if you see variable keyword, that means whatever comes after it is a variable that we're going

to assign and so on and so forth.

But you might see a problem here.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.