When i add a number to the input it doesn\'t change the value that stays at 5 and when i go in the console and type uw.value i get \"6\" back instead of 6 which i typed in
var uw = parseInt(document.getElementById("wakken").value, 10); // (value, radix) if (typeof uw === "number") console.log("works! 'uw' is an int");
Will log "works! 'uw' is an int", because we collected the value and used parseInt(_: String) to convert it to an int.
parseInt(_: String)