Today we are working on more function related content, dealing with throwing errors, how to create default values for parameters, and how to define and catch errors being thrown. All very interesting.
Todays lesson also had Checkpoint 4, which challenged me on how to create a function that finds the square root of a number between 1 and 10,000. This included defining, throwing and catching errors and not returning Doubles, or using the inbuilt sqrt() function. A very challenging task that had me reading the tips for the first time, which helped me realise that the easiest way to find a square root is simply multiplying numbers by themselves. The way I was doing it was way over-complicated.