Today, My friend Mike and I were arguing about this little diddy, and I just wanted to make sure I'm right.
Okay heres what happens,
Since variables carry over, I can't have two of the same named ones even though they are in seperate scripts right?
<body>
<script language="Javascript">
var today= get Date();
var date= get Date();
etc....
</script>
Today is ....
<script language="Javascript">
var today= "4";
var date= "6";
etc....
</script>
</body>
I am right about this am I not, that would cause an error right?
Thanks.
Okay heres what happens,
Since variables carry over, I can't have two of the same named ones even though they are in seperate scripts right?
<body>
<script language="Javascript">
var today= get Date();
var date= get Date();
etc....
</script>
Today is ....
<script language="Javascript">
var today= "4";
var date= "6";
etc....
</script>
</body>
I am right about this am I not, that would cause an error right?
Thanks.