some code about function name
发布于 11 年前 作者 manecocomph 3444 次浏览 最后一次编辑是 8 年前

function derek () {console.log(‘in derek’);} console.log(derek); console.log(typeof(derek));

var eric = function () {console.log(‘in eric’);} console.log(eric); console.log(typeof(eric));

var bar = function foo () {console.log(‘in foo’);} console.log(foo); console.log(typeof(foo)); console.log(bar); console.log(typeof(bar));

function fo () {console.log(‘in fo’);} var ba = fo; console.log(fo); console.log(typeof(fo)); console.log(ba); console.log(typeof(ba));

console.log(fo.prototype); console.log(typeof(fo.prototype))); console.log(fo.prototype.constructor); console.log(typeof(fo.prototype.constructor));

回到顶部