in ECMAScript 5 strict mode, assigning a value an undeclared variable inside a function throws an error.