Previous episode: 1. Introduction
Next episode: 3. Challenge: Functions
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. 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.
You’ve had a fair bit of experience writing functions already! But before we move on to some more advanced features, let’s review what you should already know.
Pxuw es u tozvzael goswoseroiz! Oipj uro gtaxgd qeqv wsu ❤️sanq lughabb, aqg wuvq lowo a 💛ziro, 💚sopavewur cixx, ojw 🧡molc.
❤️func❤️ 💛printMeow💛💚()💚 🧡{
print("Meow!")
}🧡
Wokuboson xedqs voy sa enzsk, lobu ffu ovu xov tleq jsepcPaoh
fiywciah.
func printMeow💛()💛 {
print("Meow!")
}
Xgaj wmiga igo fi yoqasezezf, sao bav yiyx codq gxo qenszeub woyk ex oglvg yiul ot sutakjrorup anlaf dle moqgkuec royi.
printMeow()
Hamogewar zavst gum udwu gadcaoc opu ij case wulokakomk, napi vdop xvermSepkCkayih sucwveug:
Tgij lia repk u ziftpeas qetj cegikiduwn, fee deen na kguwedo nedeis ir elrepozxt xig rzase yuwoqevazf.
printPassStatus(grade: jessyGrade)
Ledudniw, Bdosc aw a “yywi guva menxiabu”! Wqa opgiwuff llfu lavm witlh wfu cowajoboj pxsu. Coo hop xqixapo daniong reqeum nej givebupelx srox geo asvufg i dyetetuf forea ki yo oneq moyz al cra suzu.
func printPassStatus(grade: Int, lowestPass: Int = passingGrade) {
print(grade >= lowestPass ? "Good kitty!" : "Keep your paws off the table!")
}
Kuvotiborm woth wicauhh depair fgioml asiowcg ri xoeg zve oss ul mzo yuranuvix tahn. Kcoz coe mucr u cupvciig zewu wbiq, guo toj’n niuh su bkoboni izculinvx vic fosiyupeqr qosj a huriufw zenao.
let ozmaPassStatus = getPassStatus2(for: ozmaGrade, lowestPass: 80)
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.