let b = [1,2,3,4];
let a = b.map(function(a) {
return !(a>1) ? 1 : arguments.callee(a-1) * a;
})
console.log(a);
console.log(b);
var global = this;
var sillFunction = function(re) {
if(!re) {return arguments.callee(true)}
if(this !== re) {
alert("this is" + this);
}else {
alert("This is global");
}
}
sillFunction();
function createPerson (sIdentity) {
var oPerson = new Function("alert(arguments.callee.identity);");
oPerson.identity = sIdentity;
return oPerson;
}
var john = createPerson("John Smith");
john();
"use strict"
console.log(a1)
var a1 = 5;
console