You're trying yo use the DOM element itself instead of using its value . Once you get its value, don't forget to cast is to an int with parseInt:
value
parseInt
var number = parseInt(document.getElementById("number").value);
1.4m articles
1.4m replys
5 comments
57.0k users