<script> <!-- var money; var name; //--> </script>
You can also declare multiple variables with the same var keyword as follows −
<script> <!-- var money, name; //--> </script>
Storing a value in a variable is called variable initialization. You can do variable initialization at the time of variable creation or at a later point in time when you need that variable.