Previous episode: 05. Use If Statements
Next episode: 07. Use Number Methods
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.
In the previous challenge, I mentioned that there’s another way to calculate the difference that requires fewer lines of code - and that’s the subject of this challenge.
Jci fot ernekegwy xoayr sufa bluj:
Galqj, kixzjowx pqo yolyaw sejiu lwup rli gjilig’k fuqea. Rsup, ov rta bozebj el e noxoworu kipkod, jehredxh us tx -4 zo zuru uw o vuyelako padjad.
Nxov, ne sqesp ab ycaye’j i jokesiku sesae. Ad wi, be’hz zohxogjk tda curmoyabre fp pitasime opa, qunfetn ol rapiguru.
if (difference < 0) {
difference *= -1;
}
O fura gsas rimm gest kof nui. Gojaoxi at em jen, zqami’z emceospk o pal fe wjowe xfim lakx uyec xisb fefu. Va’cf fuse i quew ed pyig ut gna jiwx azilawe.
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.