var scope = "global scope";
function checkscope() {
var scope = "local scope";
function f()
{
return scope;
}
return f;
!!(obj1 && obj2);
(obj1 && obj2);
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()
var a = [1,2,3,4,5];
a.slice(0,3);
var c = counter(), d = counter();
function constfuncs()
{
var funcs = [];
for(var i = 0; i < 10; i++)
funcs[i] = function() { return i; };
return funcs;
}
var funcs = constfuncs();
funcs[5]()
var tensquared = (function(x) {return x*x;}(10));
var string2Num=parseInt("123xyz");
var o = new Object();