I'm trying to design a square-root calculator using javascript. I want the user to write the number to be 'square-rooted' into an input area. After that I want to get what user types in that input area with javascript. Here's my HTML:
<form>
<input type="number" id = 'sqrt'>
</form>
When user types a number inside input area, my plan is to get this number with a DOM method inside my javascript file. But I couldn't figure how? Any help will be appreciated.