I'm sure he was not. I just don't understand one example from his presentation
http://youtu.be/UTEqr0IlFKY?t=44m
function in_strict_mode() { return (function () { return !this; }()); }
Isn't it like that?
function in_strict_mode() { return !this; }
If is_strict_mode() will be my method , then I will agree, because this then will point to the method containing the object, for example
my_object.in_strict_mode = function() { return (function () { return !this; }()); }
But why did he do this in his example (which is a simple function, not an object method)?
javascript strict
ArΕ«nas smaliukas
source share