should tell you if your velocity is high enough to escape the atmosphere currently just not working don't know why? any help?
var m, r, v, escapeVelocity;
var outputText, missionMessage;
function validate() {
var escapeVelocity = Math.sqrt((2 * 6.67 * (Math.pow(10, -11)) * m) / r);
console.log(escapeVelocity)
if (v > escapeVelocity) {
outputText = "This speed is fast enough to escape the atmosphere!";
} else {
v <= escapeVelocity
outputText = "you will NOT escape the atmosphere at this speed";
}
document.getElementById("output_Text").innerHTML = outputText;
}
<center>Please enter the Planet Mass(m), Radius(R) and the Velocity(v).<br>Good Luck!!!!</br>
</center>
M: <input id="m" /><br />
<br/> R: <input id="r" /><br />
<br/> V: <input id="v" /><br />
<br/>
<button onclick="validate()">Calculate</button>
<p id="output_Text"></p>
expected: an output of either yes your velocity is high enough or if it's too low