summary refs log tree commit diff
path: root/examples/5.src
blob: d9a8dadf73fe88528092315db84c980e7ddcae4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
let foo = () => {
	let x = 1;
	print(x);
	return x;
};

let main = () => {
	let x = 2;
	/* As you see, the language supports variable scopes */
	foo();
	print(x);
	return x;
};