Instance Methods

I have been working on this for a bit now and I can’t figure out what I am doing wrong. In Chapter two Instance Methods I am entering


I am getting an error Immutable value of type ‘[String]’ only has muting members named ‘append’

Here is what I entered to declare the instance

let countingUp = [“one” , “two”]

countingUp.count works just fine.

Never mind I found this errata right after I posted.


Changing the let to var fixed my problem.


let countingUp = [“one” , “two”]

var countingUp = [“one” , “two”]

Thanks. MUCH appreciated.