function test(){
input = document.getElementById("input").value;
array = [];
result = array.push(input);
console.log(typeof(result)) //returns number
}
So when i tries to add the user input into an array it keeps returning numbers, did i do something wrong?