+ 2
Array Question
How can I take an input of a number and store each number in an array? Example Input: 5732 Array: [5, 7, 3, 2] Use this code please. It'll help me understand better. https://code.sololearn.com/Ws2iStCN8yq9/?ref=app
3 Answers
+ 7
Like this?
function GetArray() {
var value = document.getElementById("MyInput").value;
var valuesArray = value.split("");
}
+ 2
Yep. I figured it out. For some reason, I couldn't remember split. xD
+ 2
đ€