summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/ecma/90000-example-1.es
blob: 45f9b6cbc43a99e9553d84d2b50cdd75135c2921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
x = 0;            // A global variable
var y = 'Hello!'; // Another global variable

function f()
{
   var z = 'foxes'; // A local variable

   twenty = 20;     // Global because keyword var is not used
   return(x);       // We can use x here because it is global
}
// The value of z is no longer available