Looking for help with extracting user input from HTML and performing mathematical operations in JavaScript. Coming from a Python background, the variable system in JavaScript is confusing to me. Can someone provide guidance on how to achieve this?
<div class="text">Enter your energy usage:</div>
<input id="q1" type="text" placeholder="# of Kilowatts"></input>
<button type="button" onclick="getInputValue();">Submit</button>
<!-- Multiply InputValue by 3 and Add 2 -->
I attempted to use parseInt and parseString but encountered issues as it refused to execute.