So, I have the following code, and it's not working, and I'm not sure why. Any suggestions?
<input type="number" placeholder="#" id="lineSpace"/>
<br/><br/><button id="go">update text!</button>
var lineSpace = $("#lineSpace").val();
alert("LINE SPACE: "+lineSpace+"");
var lineSpace = "random number";
Because you are assigning lineSpace when the page loads, and it's obviously blank then.
var lineSpace = $("#lineSpace").val(); into your click handler (above the
alert() function call).