If Statements

Explain what this does. page

// Code that does it. var thirsty = true; var drank = false; if(thirsty == true) //notice the == { drank = true; document.write(drank); }

In the frame below we can view the results.

//wiki.ralfbarkow.ch/assets/pages/snippet-template/esm.html HEIGHT 50