Keeping memory of inputs provided by user

Hi All,

I am trying to create a form that allow user to select a set of French cities using autocompletion. I managed to make it work with one value : Interactive list with autocomplete / Lino Galiana | Observable

I would like user to be able to keep in memory previous choices (with eventually a reset button). I was thinking using an initially empty array that is going to be updated by appending values of the input. Is it possible to do that ? (I am a newbie in javascript so it might seem obvious)