// // ViewController.swift // WordDefinitionsWithArrays // // Created by lrosier on 5/16/19. // Copyright © 2019 lrosier. All rights reserved. // import UIKit class ViewController: UIViewController { // FINISH ME // create a variable called words that will // represent a String array var ????? = [??????]() // FINISH ME // create a variable called definitions that will // represent a String array var ????? = [??????]() // FINISH ME // connect to your word TextField @IBOutlet weak var wordTextField: UITextField! // FINISH ME // connect to your definition TextView @IBOutlet weak var definitionTextView: UITextView! // FINISH ME // connect to your Go Button @IBAction func goButtonEvent(_ sender: UIButton) { // FINISH ME // get the word that the user typed from the TextField let enteredWord = ??????.????! // FINISH ME // clear out the current definition definitionTextView.????? = "" // FINISH ME // loop through all the words // from 0 to the number of words // (non inclusive) // use i as your loop variable // words.count is the number of words in your list // or you can use definitions.count for ? in ?..