When it runs it simply wont return a value and i can't understand why. It seemed to work fine when i ran it in a html file.
Also, when number is 5 for example (number+number) has been returning 55 instead of 10. I thought it was because i had quotation marks but I've checked again and again and it's not.
Help much appreciated
HTML
<body>
<form id = 'table' name = 'table'>
<p> Gimme a number </p>
<input id = 'textbox' type = 'number' name = 'inputBox'>
<input id = 'button' type = 'button' value = 'Submit' onclick = 'check()'>
</form>
</body>
Javascript
function check(){
var number = document.table.inputBox.value;
var array = [number];
array.push(number+number);
alert(array);