Java Reference
In-Depth Information
document.write("That's the boiling point of water");
</script>
</body>
</html>
2.
Load the page into your browser and enter
32
into the prompt box for the Fahrenheit value to be
converted. With a value of
32
, neither of the
if
statement's conditions will be true, so the only line
written in the page will be that shown in Figure 3-3.
figure 3-3
3.
Now reload the page and enter
31
for the Fahrenheit value. This time you'll see two lines in the
page, as shown in Figure 3-4.
figure 3-4