Understanding push!

If I want to create a vector with 15 names, where each one is pushed into the vector individually, this code just replaces the former iteration with the new iteration instead of appending to it. Right?

push!(arr, new_element) appends the value to the array.

a = String[]
push!(a, "Bob")
#["Bob"]
push!(a, "Joe")
#["Bob", "Joe"]
3 Likes