Answer to Question #273071 in HTML/JavaScript Web Application for bogtrotter

Question #273071

Area=length x breadth


1
Expert's answer
2021-11-29T12:29:43-0500
<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>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS