All language subtitles for 033 Challenge 16_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French Download
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,150 --> 00:00:00,480 All right. 2 00:00:00,480 --> 00:00:07,710 So time for challenge 16. Make sure that you've watched a class lesson on Express routing parameters because 3 00:00:07,770 --> 00:00:13,460 this challenge is all about putting it into practice. To start off this challenge 4 00:00:13,470 --> 00:00:20,010 I want you to head over to your console and you're going to type the letters 'rs' while your nodemon 5 00:00:20,010 --> 00:00:21,310 server is running. 6 00:00:21,600 --> 00:00:26,040 What this does is that it will force nodemon to restart your server. 7 00:00:26,280 --> 00:00:31,950 And in terms of our website that means it will get rid of any previous blog post that we had because 8 00:00:31,950 --> 00:00:37,960 it will rerun this entire page and it will set our posts array back to empty. 9 00:00:37,980 --> 00:00:46,800 So the challenge is can you change the code inside Atom such that we head over to localhost:3000 10 00:00:47,160 --> 00:00:54,220 /posts/ anything you type in here, let's say testing right.? 11 00:00:54,630 --> 00:01:02,130 Then when I hit enter it should do nothing on our page but when you head over to our terminal it should 12 00:01:02,370 --> 00:01:05,250 print whatever it is that comes after 13 00:01:05,250 --> 00:01:07,070 /post/ right? 14 00:01:07,080 --> 00:01:13,950 So this last part, whatever it is I write in here, when I hit enter it should get logged in our console. 15 00:01:14,160 --> 00:01:19,860 And this requires you to apply what you learned in the last lesson about route parameters and using 16 00:01:19,860 --> 00:01:22,030 Express JS to achieve this. 17 00:01:22,060 --> 00:01:25,130 So pause the video and complete the challenge 18 00:01:25,140 --> 00:01:34,770 now. All right so there's only one hint for this challenge and that is remember that using Express if 19 00:01:34,770 --> 00:01:41,100 you have a read of the documentation, you can see that whatever parameter you have in here you can access 20 00:01:41,100 --> 00:01:47,390 it using request.params and then dot the name that you've put over here 21 00:01:47,610 --> 00:01:53,040 right? So whatever it is, it has to be spelt exactly the same. And hopefully this is enough of a hint for 22 00:01:53,040 --> 00:01:55,290 you to be able to reach the answer yourself. 2421

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