is not a function error getting :         var newSalary = function(){
    	var salary = 30000;
    	function update(amount){
    		salary += amount;
    	}
    	return {
    		hike: function(){
    			update(5000);
    		},
    		lower: function(){
    			update(-5000);
    		},
    		current: function(){
    			return salary;
    		}
    	}
    }
    
         
        console.log('current salary::'+newSalary.current()); 

getting newSalary.current is not a function.

what's wrong in the code
 

I need a solution like without using self execution functions. sorry for my english. 
