I want to display the input value entered on click of button "Go". The input value is stored in the variable named "value" and made visible in id="show".
<html>
<head>
</head>
<body>
<div>
<input type="text" id="input" />
<button onclick="go()">Click</button>
</div>
<div id="show" style="display: none;">
<p>${value}</p>
</div>
<script>
function go() {
document.getElementById('show').style.display = "block";
let value = document.getElementById('input').value;
}
</script>
</body>
</html>