I'm having an issue trying to get this code to work. Idea - get user input, assign user input to array and display array, then using pop method, take an element off the array and then display same array with one less element. Doing this for the purpose of understanding JavaScript, no practical application.
//Declare Variables//
var userInput;
var inputArray;
//Create array of objects//
var inputArray = [];
//Get Input//
var userInput = prompt("Enter numbers");
//transfer input to storage//
inputArray = userInput;
//Display new storage unit//
alert(inputStorage);
//Take one element off user input//
userInput.pop();
//Disply new input data//
alert(userInput);