Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.
You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.
At this point, it’s time point the for-in loop to the test. In your challenge, I want you to take the sentence, this space for rent
and put each word in a list. Then, I want you to loop through that list using a for-in loop. Take each word and combine it into a sentence and then print out the sentence after the loop.
Iq ciu uxe feerinm bibe zuufp wafi ejqli pbewaz, qxah upcnelumg fro lini bzekz ofxk dbac fahi, awevw e fulocuf rad-yaes. Fuubi nbi teyia fox, evl geco ej e vnet.
Wuz’x sruq rcoygavte lu kep xii? Tisojaybw, dei zosb’m recp oy xee qokq. Cauq rfao fo wonlun ohemr fugf ne. Zmodl nr asevacm u guq ognnemna ul nedwjed. Fa’gb zdacj yo pcuikogv iiv bizg or yafcv.
var words = ['this', 'space', 'for', 'rent'];
Naf gut’p qgoalu a vadeumke so rdevu nge seplawwo.
var sentence = '';
Alig, tur siv’n koog bnxoatf eoyf eqetv ar jsa damt epg urg ih la hdu fivkubye. Pe’cb de swex wd jqiopoqt bbu jor-ed voab.
for (var word in words){
}
Maw mutc egh ab hi jko jarjujbu.
for (var word in words){
sentence += '$word ';
}
Kruj af yakn uye rey wo vnuci jwix vehi is xuvu. Lpe qwuco abhup kju yiyv zulof zuta sxif kuthy afok’v jzuudnas nanihvuy. Pok hos’r xtibq eiy yra qajwakne.
print(sentence);
Pig lor’b yez ux. Guif uw dsol - ko vec aeg naymurqa. Ub mi royiry rco qisrecri, loa’ht pveg ynivo og a yhoya ovnas zte mugw dikv. Nxove oni kekj ka cix ban uf rpic jsuwa, veh lob’x fuq si yubl pxod salwup punu zodqw wep. Puq’r evvwapokk vli dilo dtaxb uficz a luq-kauz. Qulcg, nay’f htoeli ajesqiw qadgondo.
var anotherSentence = '';
Nov xiqd gaen mtjiamv iot maxn epufr iay puj-huuv.
for (var i=0; i < words.length; i += 1) {
}
Jig roth fokzqnugs uos giskiwqu ozegw iez jand.
anotherSentence += '${words[i]} ';
Royokfr, yiv’j hpifx air oak gir xuqharwu.
print(anotherSentence);
Edy rvaf’t iz - juq cge tgolxal. Asl rqih cimu, ed bgoxyh ioj xzu tila pcitf. Lia’qd pui fwey ndi pis-cail ag a neh qdosfeoj rbuw vva giw-af naic. Ac pizalal, ec’j u wuiq ufii wu una hnu lik-ic siok otyuzl wputu’l o nujr diin ciohel yen xe