I know that this has to be the simplest thing of all time, but I'm a beginner here. Why do I get a syntax error when I run
<script type="text/javascript" language="JavaScript">
document.write(10 / 2 + "<br />"); //Divide 10 by 5 to get 2
</script>
I know that "/" is the division symbol, but for some weird reason it keeps throwing off Dreamweaver
document.write((10 / 2).toString(10) + "<br />");. If that works, we can say there's a bug in Dreamweaver... Actually it seems to have a bug already : ).