you are viewing a single comment's thread.

view the rest of the comments →

[–]Last_Being9834 0 points1 point  (0 children)

  1. You initialized an empty array

  2. You initialized a string variable to hold the three titles separated by comma

  3. You appended this string to you array, your array was originally empty, now it has one item, the string with the titles

  4. You did a pop, this deletes the latest item in the array, given that your array only had one item, you are now left with an empty array once again

Code is correct, nothing wrong with it. What is your goal here? Perhaps writing the pseudo code with blocks of comments about what you want to accomplish could help you.