Hi,
I was working on Tutorial 1: BullsEye App, and on Page 89, it says that:
In showAlert(), there are six locals and you use three instance variables:
And then on the next page it says that there are four of them.
The instance variables, on the other hand, are defined outside of any method. It is common to put them at the top of the file:
class ViewController: UIViewController {
var currentValue = 0
var targetValue = 0
var score = 0
var round = 0
Is it just a typo or am I missing something here?
I have uploaded the screenshot. Please take a look.
HERE IS THE SCREENSHOT: