var car = {
speed: 150,
name: 'scoda',
color: 'white',
finallySpeed: function(acceleration) {
return this.speed * acceleration;
}
};
car.finallySpeed.variable = 3;
console.log(car.finallySpeed(car.finallySpeed.variable));
function man() {}
man.name = 'Игорь';
man.getName = function(name) {
alert(name);
};
man.getName(man.name);