Closed fmad closed 8 months ago
It's totally normal this solution doesn't work
Swift does not accept var count=0
, it will ask you to have this syntax var count = 0
For me your answer is not good.
Sorry, missed the comment as I've been busy moving houses.
Swift playgrounds seems to like it enough as you can see from above snapshot.
I'm not too fussed though, I realized by now that this program has a set fixed number of "good" answers and I'm done with the challenges anyway, so there's no point in keeping this open.
The exercise that goes: "Write code that goes over this array, counting the number of times it contains the number 5, then printing that total", does not accept a simple valid solution:
Steps to reproduce
This code works but is not accepted:
Expected behavior
It should count as correct, not failed
Actual behavior
Environment