Skip to content

Instantly share code, notes, and snippets.

Alberto Zaccagni lazywithclass

Block or report user

Report or block lazywithclass

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lazywithclass
lazywithclass / gist:1817884
Created Feb 13, 2012
Javascript quiz question 1
View gist:1817884
(function(){
return typeof arguments;
})();
@lazywithclass
lazywithclass / gist:1817948
Created Feb 13, 2012
Javascript quiz question 2
View gist:1817948
var f = function g(){ return 23; };
typeof g();
@lazywithclass
lazywithclass / gist:1818104
Created Feb 13, 2012
Javascript quiz question 3
View gist:1818104
(function(x){
delete x;
return x;
})(1);
@lazywithclass
lazywithclass / gist:1818350
Created Feb 13, 2012
Javascript quiz question 6
View gist:1818350
var foo = {
bar: function() { return this.baz; },
baz: 1
};
(function(){
return typeof arguments[0]();
})(foo.bar);
@lazywithclass
lazywithclass / gist:1818289
Created Feb 13, 2012
Javascript quiz question 4
View gist:1818289
var y = 1, x = y = typeof x;
x;
@lazywithclass
lazywithclass / gist:1818328
Created Feb 13, 2012
Javascript quiz question 5
View gist:1818328
(function f(f){
return typeof f();
})(function(){ return 1; });
@lazywithclass
lazywithclass / gist:1818743
Created Feb 13, 2012
Javascript quiz question 7
View gist:1818743
var foo = {
bar: function(){ return this.baz; },
baz: 1
}
typeof (f = foo.bar)();
@lazywithclass
lazywithclass / gist:1825485
Created Feb 14, 2012
Javascript quiz question 9
View gist:1825485
var x = 1;
if (function f(){}) {
x += typeof f;
}
x;
@lazywithclass
lazywithclass / gist:1825452
Created Feb 14, 2012
Javascript quiz question 8
View gist:1825452
var f = (function f() {
return "1";
}, function g() {
return 2;
})();
typeof f;
@lazywithclass
lazywithclass / gist:1827967
Created Feb 14, 2012
Javascript quiz question 10
View gist:1827967
var x = [typeof x, typeof y][1];
typeof typeof x;
You can’t perform that action at this time.