We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8099eff commit 2912972Copy full SHA for 2912972
Decorator/Beverage.js
@@ -3,7 +3,7 @@ var Beverage = function()
3
this.sDescription = 'Unknown beverage';
4
};
5
Beverage.prototype.getDescription = function(){
6
- throw new Error("This method must be overwritten!");
+ return this.sDescription;
7
8
Beverage.prototype.cost = function()
9
{
0 commit comments