info
Can you explain i am little bite confuse in this try it yourself https://www.sololearn.com/Play/JavaScript according sololearn didnt mention to add open <html> and <head> <body> <script> and close it I logically did it but using Atom to code i could close the color in atom of </html> </body> </script> didnt become red instead blue If you know ATOM by the way <head> </head> <body> <form onsubmit="return validate()" method="post"> Number: <input type="text" name="num1" id="num1" /> <br /> Repeat: <input type="text" name="num2" id="num2" /> <br /> <input type="submit" value="Submit" /> </form> <script> function validate(){ var n1 = document.getElementById("num1"); var n2 = document.getElementByld("num2"); if(n1.value!=""&& n2.value!= "") { if(n1.value = = n2.value) { return true; } } alert("The values should be equal and not blank "); return false; </script> </body> </html>