Advantages of functions

  • The code you write can be re-used which makes coding quicker.
  • If you give your code sensible names, then it can make your code easier to read
  • Functions make code easier to debug ( because you know where to look if there is a problem)

Challenge 1 –

Challenge 2-

Challenge 3 –

Challenge 4 –

Challenge 5 –

Challenge 6 –

Challenge 7 –

Challenge 8 –

Challenge 9 –

Challenge 10 –