I was implementing a form that includes a hard-coded dropdown for a collection and I was wondering what would be the best solution, I know both ways exposed below work, stil
The latter is better. If it were a method, a new array and new strings will be created every time it is called, which is a waste of resource.