Friday, 22 November 2019

Creating a function


In grade five coding we use the app Swift Playgrounds to learn how to code. I chose the level collect, toggle, repeat to explain because I think that is a very interesting level. The whole point of this level is to create a function to collect the gem and switch on the toggle switch. A function is a named set of commands that can be used whenever needed. Once I created my function, which I called Move, it was done. I was able to use the function to complete the level.



No comments:

Post a Comment

Creating a function

In grade five coding we use the app Swift Playgrounds to learn how to code. I chose the level collect, toggle, repeat to explain because I ...