From df8d896683dcff24e190ab2f755afc44e2c7eab3 Mon Sep 17 00:00:00 2001 From: Kitt Hodsden Date: Sat, 7 Apr 2012 15:22:23 -0700 Subject: [PATCH] Change message to function, call function (still not fully correct, though) --- part_04.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/part_04.html b/part_04.html index 173b613..b28fd29 100644 --- a/part_04.html +++ b/part_04.html @@ -199,9 +199,9 @@

reusable code that does something!

color: window.prompt('Favorite Color'), tool: window.prompt('Analog Printer?'), count: window.prompt('Favorite Number?'), - message: answers.count + ' ' + answers.color + ' ' + answers.tool + 's', + message: function() { return answers.count + ' ' + answers.color + ' ' + answers.tool + 's'; }, annoy: function(){ - alert('You told us: ' + answers.message); + alert('You told us: ' + answers.message()); } }; answers.annoy(); @@ -309,4 +309,4 @@

reusable code that does something!

- \ No newline at end of file +