From my colloquial understanding of creating new objects from classes in Javascript one can do the following line of code:
const exampleVariable = new exampleClass("ExampleArguement");
I apologize for this being a novice question but is it possible to create new objects within the execution of the program? Sort of "automating" the creation of objects in my code.
Let's say I need to create 100 objects.
I could technically write 100 lines initializing variables and their respective objects but I am 100% sure there is a more efficient way of doing this.
I tried looking up a solution but I couldn't quite get the phrasing right so I would appreciate it if someone pointed me in the right direction.
Many thanks.