WWDC24 SALE: Save 50% on all my Swift books and bundles! >>

Checkpoint 9

Forums > 100 Days of SwiftUI

func rando(_ arrays: [Int]?) -> Int { arrays?.randomElement() ?? Int.random(in: 1...100)}

print(rando([17, 32, 55, 99]))
print(rando([]))

At first glance of the checkpoint I felt like I forgot everything but then I broke down challenge. Much easier than I thought originally, onto the review day!

2      

Please Read

Please read this thread and the response from @twoStraws. See-> How to Post Progress

In short, please keep posting your progress. However, instead of a new post for each day, you can edit this post!

Instead of the title "Checkpoint 9", consider changing your post title to: jmac's Progress: Day 9 Complete! Next week it will read: jmac's Progress: Day 16 Complete! Keep changing the title as you progress.

Add to the post! After each milestone and challenge, post a snip of your progress, your quiz scores, and the concepts you found fun, or difficult. There are other articles, blog posts, or YouTube videos we can point you to, to help you solidify a concept, or to push your boundaries.

Keep coding!

2      

Save 50% in my WWDC sale.

SAVE 50% To celebrate WWDC24, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.