Full code block:
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);
Are they simply another way to create a function?
For clarification purposes, I do know what this code does.
create.man = function(height){…};