Include several elements in the Array

Asked

Viewed 39 times

-3

I’m trying to load an array with the elements that are in a variable. I’ve tried several ways, but I’m not getting it. Follow a print of my code with Debug. I appreciate the help. Eduardo inserir a descrição da imagem aqui

As can be seen in this print he is considering the string as a single element

inserir a descrição da imagem aqui

  • 1

    Do not use images. Make your code executable and minimally testable.

  • The position 1 of your Array is a String and you want to convert the result of this position to 1 Array is this ?

  • No Ricardo... I needed to convert all the elements of the Array. But this has already been solved with the answer below. Thank you

1 answer

1


To whom it may concern, I have solved the problem with education :

var c = WWArrayY.map(Number);
arrayY = c;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.