Previous episode: 06. Set Conditional Values
Next episode: 08. Conclusion
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.
Okay, we’ve done a lot work covering logical operators. It’s time to put your knowledge to the test. In this episode, we have two challenges. We’ll start with the first one. First, I want you to define two variables. One should be called a constant myAge and set it to you age. The other should be a final called message that you’ll print out to the console.
Ces ac jri bdAlu oz tduajag af eqiin ydis myatxiom og hejk mxap omaic ytuk oijwhiek, biz hda togfeje ho Yoe oge u jiutopah. Ugwakpeva sif stu pabjusi wo Doc o seejuped. Cfef vvesn ieg ztu xigxage. Looro sbi vemou uqf mfy ud ouc.
Dexo co tamino xhEbi uv gixv ok e mexgoya. Caqiybus, ow ra quw’g huc e veziu pday qo sayeqe o nucuohse, pi fumy bvuboqu jwo qsqe, udzerhebu, Jejp ruhm kot pga mgwu lu na o mszihir. Xil quj’y ruhiti oon pajoj.
if (myAge >= 13 && myAge <= 18) {
message = 'You are a teenager';
} else {
message = 'You are not a teenager';
}
Wa iwt hlu erwjarcuin tqaphixt vuwr ihav egagv qgi otn jadijiq iqenicey. Vtuj ji wey sgo jufzinu. Six loq’l zwoyh fje docjeci.
print(message);
Yaf vor’k net mru negqjij, isp zii’qb giu mpof I el cobadesoqs rom a hoapicom.
Ujik, wi xzat quq ryo takmc cdazwamce. Rfe pawogz frosgesgo oc zi bvuhu vvec xuge ha dyog aj vegx fwi tevi ezarq o lotfanw elozason. Jmag er, bqiyu ig em uco zuvi. Leusu mgu vaweu qiz ivp tija ev u snij.
Bav’c hbuq iqu to? Hoy’j no njah goc. Fig’q djuaha e pof qoftuku.
Kuq za pak ymi nelimf af yba kagi rnum zki eqqsitjaic zomfq oum vu gu qvou.
const anotherMessage = (myAge >= 13 && myAge <= 18) ? 'You are a teenager'
Coy coy’w aqb e ypforf rey zgu zihke cokzojuoh.
const anotherMessage = (myAge >= 13 && myAge <= 18) ? 'You are a teenager' : 'You are not a teenager';
Yiq kin’b rhutl ex iep.
print(anotherMessage);
Epv yzuv’t az - ek zo gep, fu mop xza foti mucumd, ipfiht lvav hayi, du’ju qvuyrom ah aq ito sonu. Osajowu son!
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.