完整代码块:
var create = {
man: function(height) { // What is this line called?
return "Generating a man. Who is " + height + " tall."
},
woman: function() { // And this one?
return "Generating a woman.";
}
};
var manC = create.man('2 feet');
console.log(manC);
它们只是创建函数的另一种方式吗?
为澄清起见,我确实知道这段代码的作用。