All language subtitles for 105 Javascript Variables Exercise Start.en_US

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified) Download
zh-TW Chinese (Traditional) Download
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
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
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
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
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-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

All right guys in the next lesson I've got a coding exercise for you and it's meant to test your understanding

of JavaScript variables.

Now when you head over to the next lesson you'll find a section with the instructions at the top and

your code file at the bottom.

Now the goal is to switch the values that are held in two variables around so to begin.

We have a variable a which holds the value three and the variable B which holds the value eight.

Now you have to write some code on lines seven eight and nine so that the values are switched around

so that a holds eight instead and b holds three The way I like to think about it is let's say you had

two buckets right bucket and Bucket B a hold some sand and b hold some water.

How would you get the contents of these two buckets to switch around.

That's basically your goal for this challenge.

But there's a couple of rules that you have to follow in order to get the correct answer.

Now first you should not change any of the existing code so don't touch this part and don't touch this

pope.

You are just allowed to write in these three lines.

Now the second rule is you're not allowed to type any numbers.

You can't just simply say well a equals eight and b equals three.

This is not a valid solution.

Now the final rule is you're not allowed to read declare the variables either so you can't for example

just say Well now a equals eight and b equals three.

This is also wrong.

So have a think about how you can solve this challenge given all of these constraints.

And over here I've got a code playground set up for you.

So when you click on it you should be taken to the same file where you can write your code and you can

use this playground to test out your code.

So for example at the moment if I just click run then it's going to log that a is 3 and B is 8.

Now what we want to happen is when we hit run it should say the opposite a is a and b is three.

So how we play around with the code and use the rappel it to test out your code and your hypotheses

and hit run to see if it actually does what you expect it to.

And then once you think you've got the solution then go ahead and write them in your code file here

and you can click on checked solution to see if you got the answer right now.

Once you're done you can click continue and I'll talk you through the solution code.

So head over to the next lesson and start the code challenge.

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