var user = functopn(usName){ this.name = usName; // метод установки имени this.setName =function(newName){ this.name = newName; } // 2-й метод, задает новое имя Tolbase this.newName = function(){ this.setName('Tolbase'); } } The 2nd method is wrong. So how to call a method inside another method?