Click the image to enter a password protected document. Try a wrong entry first.
Ret = prompt('Type the word castle',"");
location = 'ch03_1.htm';
alert("Please try again")
has empty brackets "()" which indicate that there are no
Notice: this function contains
- an assignment statement and
- an if/else block.
The variable Ret is assigned a value and the If/else condition test the
value to determin what happens next.
I will discuss this later.