some code about function name
发布于 2年前 作者 manecocomph 587 次浏览

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));

回到顶部