summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/ecma/example-1.es
blob: 0bc9b775aba3e8a01b72df65ec66fd22b849b94b (plain)
1
2
3
4
5
6
7
8
9
10
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