Question:

When this code is executed, what will the third constant contain?

let first = ["Sulaco", "Nostromo"]
let second = ["X-Wing", "TIE Fighter"]
let third = first + second

Answer:

Correct answer: "Sulaco", "Nostromo", "X-Wing", "TIE Fighter".

Explanation: Swift arrays can be joined together using the + operator, which adds the right-hand array to the end of the left-hand.


Keywords:

© 2017 QuizBucket.org