Agregar un objeto al final de un array / Add an item to the end of an array

var cityArray: [String] = ["Portland","San Francisco","Cupertino"] cityArray.append("Seattle") //The array now contains 4 items

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.