Area=length x breadth
<html>
<body>
<form>
<input type="number" id="length" required />
<input type="number" id="breadth" required />
<input type="button" onlick=handle() />
</form>
<script>
function handle() {
let length = document.querySelector("#length")
let breadth = document.querySelector("#breadth")
console.log(length + breadth);
}
</script>
</body>
</html>
Comments
Leave a comment