Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Corsican
Croatian
Czech
Danish
Dutch
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
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.