diff --git a/js/helper.js b/js/helper.js index c61c3a5d4f..676d60a49e 100755 --- a/js/helper.js +++ b/js/helper.js @@ -64,8 +64,9 @@ The International Name challenge in Lesson 2 where you'll create a function that */ $(document).ready(function() { $('button').click(function() { - var iName = inName() || function(){}; - $('#name').html(iName); + var $name = $('#name'); + var iName = inName($name.text()) || function(){}; + $name.html(iName); }); });