
previous

page 11
next
Still the same result, eh?
And, of course, the problem is (and this is my most frequent oversight!) that we haven't told the browser about our my.js file. Add this line to your head section:
<script src='my.js'></script>
So fix this problem by creating globals.js with this line and this time do the right thing in index.html!
var g_n;
In computing NaN stands for Not a Number.
So what is the problem? The problem is that we didn't give g_n a value!
var g_n=1;
Still nothing happens AND no error message this time!!!!!!
previous
next