function while loop
===

I'm trying to get this function to work properly in javascript, well it is working properly what i can get to happen is the bottom 
console.log (work(" gallons of water has been extracted from the carpet."));
I can't get the " gallons of water has been extracted from the carpet." to show up in that same line of code.

// Global variable

var waterGallons = 40

var work = function(total) {

	var water = 0;
		while (water < waterGallons) {
			console.log("The carpet company was called out to extract " + water + " gallons of water.")
			water+=4;
};
return waterGallons;

}

console.log (work(" gallons of water has been extracted from the carpet."));