Making new strings from old parts


  1. Extract the three-letter station code and store it in a new variable ( stationCode ).
  2. Find the character index number of the semicolon ( indexOf(';') ).
  3. Extract the human-readable station name using the semicolon character index number as a reference point, and store it in a new variable ( stationName ).
    Remember, you'll want to extract the next character after the semicolon. Hint, step 2.
  4. Concatenate the two new variables stationCode and stationName and a string literal + ': ' + to make the final string stationCode + ': ' + stationName.
  5. Change the value of the result variable to equal to the final string, not the input variable.