Description : How to make a dynamic table in JS to display names based on Weekend dates?
Last Answer : I suggest you to create a js function. The array will be a parameter of the function (this way you can use it with multiple variables). So it will look something like this: function loadTable(names) { for(let ... var array = ["one", "two", "three", "four"]; loadTable(array); //calling the function