I want to writ a jscript code that asks user to type (example) his name and than that name to be stored in variable x.
this is what i have done so far, i am very new on jscript se please somebody can correct me with this.
var x = prompt('enter your name'){
alert('hello'+ x)
correct me please
and second question is about the confirms, example how to ask user like if he want to delete something. any piece of small code any help or any website with good tutorials.