Professional Documents
Culture Documents
Javascript Do While Loop
Javascript Do While Loop
You can
overcome this by declaring the variable that will be defined in the loop later.
Also, make sure you terminate your statements in JS with semicolons.
var secret;