All language subtitles for 021 Challenge 10_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

All right.

Time for another challenge.

Now currently we've got two inputs inside our form.

One is called post body and one is called

post title. And we know the inside our app.js we currently can log the post title that gets sent

to our compose route through the post requests that the form initiates.

So when we click the submit button we send over two pieces of data,

the text area and the input.

So if we wanted to we could console log the post body that's the text that's inside the text area as

well.

So now if I go ahead and head over to our compose page and refresh and I just type some stuff in here

and I hit publish and I go over to my console then you can see that everything I just typed gets logged

in here because I'm tapping into that variable

post body which is what I defined inside the name for our text area.

The next challenge is instead of console logging the post body or the post title inside this callback

I want you to create a Javascript object that's simply just called post and it has to store both the

title that gets passed over as well as the post body that gets passed over.

So pause the video and try to complete that challenge.

All right so if you've forgotten how Javascript objects look in terms of their syntax then take a look

at my first hint.

So this is how you would create a standard Javascript object.

You would have a var keyword to show that you're creating a new variable.

And then you would give your new object a name whatever it is you wish.

And then you would have an equal sign and you would open up a set of curly braces.

Now inside the curly braces you can have key value pairs and as many as you wish.

You can even nest key value pairs as the value of a particular key.

The parts in purple are the parts that you would need to change in order to create a custom object.

So with this hint in mind now try and complete the challenge.

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