Wednesday 7 March 2018

Swift Playground - Function

Image result for swift playground
Image Attribution
Hey Bloggers! Today we had another opportunity to experience Swift Playground, a coding app you can download on a mobile device. We had to code and talk about the different kinds of commands such as : loop and function's. 

A function is a piece of code that you can easily command or control over and over again repeatedly. It includes the specific instructions that are performed when coding. 

A loop is a block that runs a number of code over and over again for a set of times you can specifically choose. 


We pretended to be a block of loop and do a number of things at a set of times such as doing the Macarena Dance 4 times in a row. This helped us to experience what a loop block in Code is like.

You can explore more at Swift Playground on the App Store.

Thanks for reading!
By Mitchell.M
07/03/18

No comments:

Post a Comment

Note: only a member of this blog may post a comment.