what's ur mean?🤔 u will set that value
For instance A confirm box alert has value of yes or no ...1 or 0. How can I store this value in variable?
function myFunction() { var txt; if (confirm("Press a button!")) { txt = "You pressed OK!"; } else { txt = "You pressed Cancel!"; } document.getElementById("demo").innerHTML = txt; } w3schools
const value = confirm("hello");
Обсуждают сегодня