var g : number;
g = 6;
g = 1.5;
g = 2 * 6;
g = 10e6;
g = Math.random();
g = "hello"; // compile-time error
var s : string;
s = "hello world";
s = "o" + "kay";
s = "fundamentals".slice(0,3);
s = 66; // compile-time error
var b : boolean;
b = true;
b = false;
b = undefined;
b = null;
b = 0; // compile-time error
b = "a"; // compile-time error
b = NaN; // compile-time error
var numbers : number[] = [];
numbers[0] = 1;
numbers.push("two"); // compile-time error
var strings : string[] = [];
strings.push("hello");
strings[1] = 1337; // compile time error
var things : any[] = [];
things.push(1);
things.push("hello");
enum OrderStatus {complete,pending,declined};
var n : OrderStatus;
n = OrderStatus.complete;
n = OrderStatus.unfinished; // compile-time error
n = "on the way"; // compile-time error
var w : any;
w = "string";
w = 8;
w = false;
w = [];
function nothing () : void {
var g = "I don't return anything.";
}