I am trying out event driven programs, and here is one of the things I was trying to do
< body> < script> var number = 100; </ script> < p> number< /p> < /body>
But then i soon realized you cannot use variable names inside of
<p>, and transfer the value of those variables. The output was:
Using a variable like this seems very logical, so why is using variables outside of the
< script> tags not a thing? Or am I missing something? are there other ways of doing this?