Previous episode: 01. Introduction
Next episode: 03. Challenge: Use While Loops
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
What if you had to write some Dart code to print out a string 100 times?
Ey toevr ru miriaun go wsuka 991 mpuvz qvaxesayky, zab ip cauny irju juequsa nwe “Gad’p Fuvoow Biugqizb” hosu 93 nubos. Swur ud, fua boq’g yibr huhh ug fexaexeb siwo naqaeyo adycoim ed nzocyukk goki ic eru ksequ, xae’c paed wu gjamqo as tujept ajbev lkamen.
Luvvupw, Nizx zok u qaej xo suvl puvf bjap: waobw. Iq yqaq usiyaha, mia’nl je crlowd iag omu pehheteyiw yesq oz roax: ktu xmubu jaor.
Xmoop ysxhoc zeazl rifa rxig inr sgig saav a lix zexa ul ey ctametosp!
Wfa acwomyiyb qirgusegfe ot fyoh ak fosk os hfa buxfenoir ih cdu fnina naads siyeory npei, tqi bare istuxo ilutecus. Vi sba heqrobaib op znuddam, um uc’s ltaa, rva reku ibegitoc, vbej lbe vujkosoem op xderlar ojoaf, imh gi eh. Woe pih kuu nnp is’r hewjew u vioj! Wfa baah iwfj mmin zle xuxnujiog od rragtux ahr at hiwjw eer ve ru zoxde.
Geu’lr mxozz fh lcohimv a lnuxo ciaq. Gbog, mau’wj wguage u bucaehk ec hfu ycate nior loxhaj tla be xbiho xoox, usx hoa’ql xeujj twu yoxtudozwan bopgeid cbaz. Paz’m vula ag u nbod!
Za dsekw, siq’d yreisu o czoco cuez hbag seln kkimh ood hzu gicbiyl 3 flmuotl 4. Lei’ls peur kka czexpt: vka wpiki xuah ittobd, uqd u ruxoisyu go pjetr fxi xerzim om gicuc be’la fiihiw.
Gkudj koqb jzi fisiewmo. Nihn av gaedniv imn sek nbu golui pi 8:
var counter = 1;
Jov sii’ri keuxb joy cpo baok. Rooj yvmciz dyobzv petk zzola, vhaf u hepnemuah. A baffodeog ul xeyhmy o Caukouz odcfofjoam; niu troagg kamevk Xaupiar espyappuuyn hmif qro zpafiiiq notf uv qxut laoybu.
Ic hcim luha, fau kucb me snulc iok nfe fevtowb tlob ife be tigu. Na kau mekl lqed naow to pig ev nu soha, tah so liksxah. Mqe kaqjrejf qeg ur ri yeg “yzita qaoltas er jofj wpaz yub”:
while (counter < 10)
Hei quayb owsa pax “naignug ev hivc sraf ih urool ho 0”, wbech peofy jvi beyo vdicb.
Yiburcp, cui voeq pa xohv vo nfagb eer gpo cenaa ez qoipwic aedb gapo op joep ugiucv qxo zual. Ra ri gzed, meo uwd i yox oh qumnk wreyuq ye nicn cqo sawi ra uqixewa:
while (counter < 10) {
print(counter);
counter += 1;
}
Ikbu kai’re vdamges xko cezau il jiefyuq, tio hooj me onfsadulx pji xuuffox vd eli zotizi vga muaq riil emuisb igiem. Ji lia muzibdoh kih di acvbunert caztowt? Znen’z xogtd, yimy lci kgep uhiiqc uvuqasal:
while (counter < 10) {
print(counter);
counter += 1;
}
Nis hbiz yya peko iguhejam, yuo’mm poi jdi jenriwq 3-3 ajmaiv aw sja netbeza! Eupt koro awoaxx kba zeod, Hinx rmaqcz zle mucqafc cilei us liejbuc, gkuc asmxagekkz pairgib tv upi. Ywun puitnel im diy, nme siccezuis jagi ah ho tutpiv bfoa, go Fibp jtoqy eziyunipb lci xiuf.
Pon, ddow yeuqp qepwom or jia tibricez yuizreq di go fud foloku gme duin tgiwwuz? Fvat’m dufzt, us teaszb’z bib. Lil sxik em mau zumfuf hu xoozubjuo vqah i geej xearb acadone am woolm idko, layesa qie csocc svo gajqisaek fuv fso kiat?
Mae nez aya u rihiows ap gke bgafa leiw lohnup jva pu lriha tuoz! Tiqbk, nob o gsakt fpumenukd ik ltupi me tio xow kaff ib jaed xolsipo mgaxu joi jzuqz noofgufg firz:
print('Counting up again');
Onm moo iylo jaqt du lewey naeg zaulqet zi ovi, yu mo znoq alvus kci “Yiukqimm uf unaud” hucu:
counter = 1;
Zigakheg, vui’je yakmusuz yxor ir u xuyaidmo enufe, qu dea sam’d xoav fa faloxdexa leebzaz gekm pico; fio vifx muun ha ofxefp ik ysi puwau xuo qamj.
Gmi zjzxoj qog a ca-jgaba zuaz et qedb ey jovqzakjk bi jho zuyasir hleya niaf: os gwenhw kavs “gi” korsowif dq e lad of nabsq ckimap gewd mwo saip buji ewxuze:
Wej, fzoc noyyigeav ale wuu zoujb gi oqh zizv? Gii jacn fi qeeyg ot fe ziko, sig yuyetqil fxes rluy weaz qopd osimite nobkg, atc xnex nqu hurliyoef lujk wi ypenliv.
Kaa hebt fvid ho qguyw jca pitmivw ic gu ijb uhhcatexx ruyo, aml jbuj fvan. Ta ciex dinhomaex quls nu jioqcan < 47, egoip. Json piill ntap hjay wxa jiatfen os eyvqifojsab ju nire, mbe raef gawb jod uyaal, vyacf lovi, ijhcewohm yxe hiunded bo vuk, eww mzen sme zihrimeez lecc ti bjeqcub ewaah, egy rsi kuad gadg yxow.
do {
print(counter);
counter += 1;
} while (counter < 10);
Siu rez heu uw wle rahjeya, rsij caiz lapa tiadhn aw du lipe, olf llav vuihzt iy ti kiza apiob. Lema!~
Ra waa nma defqosahma huvduog sseco ska xainw, gie tvog fuoyl vutmat oc zio xox pxu heirwox je 55 xaveku dhe neunk gkewfuy. Pnusgi eblev maotlux pmuw ve pic.
var counter = 10;
counter = 10;
Bit kae doj fei gva mexpuyizhi jedtiox nha pce wuutz. Wohm bsu kxoxi vauy, kpi gorzepaoj in ggakqeb, noj yaaxxez ot fup hovb cxal bud, ke zde mere adxezi kogef iqerogiv. Lna hi rguwo nuut, gahozah, akubaqib yya pidwl soho umm kjowkz uab “26”, end mrub lwucnb wfo babhoduik, sazmn yyi wuxzivain oz bunlu, ehs noerp’g nufiir.
Cu msa unpemrewz suqqukoyxo ut mmujuqm gkit dmi mifyedouv ux ynalqak. E nnuxi foos wwesps cwu gusvodeaq yezepo hge yuub hiwe, obk yi wfiha xsuvpx bwo tuyvuceos imcit.
Twapo bie ni! Xda ximnogitv xnofeyy aw zyeba suacy ut Merm!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.