i'm new to javascript and i have a little issue. I have an array like this:
name = ["Alex","John", "Mark"].
After that, i have and object with an array inside like this:
ObjectNames = {
labels: []
}
I want to fill the labels array with the content of tha name array like this:
labels = [name[0], name[1], name[2]]
How to do this?