How can I use a variable of one <script> in another <script> in javascript?

global, javascript, variables

Solution

If the two script tags are on the same page, any variable declared outside of the scope of a function is global to the page.

Problem

How can I use a variable of one in another in javascript?

Original source