(function () { "use strict"; console.log(eval("var x = 5; x")); console.log(eval("x")); })()
If the above code wasn't in strict mode, it would have printed 5 both times, and the variable "x" would have been local to the function block:
(function () { console.log(eval("var x = 5; x")); console.log(eval("x")); return x; })()