how to take user value on js code example
Example 1: how to ask input in javascript
let name=prompt("What is your name?");
console.log("Hi "+name)
Example 2: get value from textbox in vanilla javascript
document.getElementById("myText").value = "Johnny Bravo";