Table of contents Home page
Execute this code
var x var a = prompt('Enter a value for x or click on "Cancel" to leave it undefined.') if (a != null) { x = a } if (x == undefined) { alert("x has no value.") } else { alert('The value of x is "' + x + '".') }