자바스크립트 클로저1 [CodeWars] 8kyu#8 - Shifty Closures [CodeWars] 8kyu#8 - Shifty Closures ■ Description:Functional closures can get overly attached. Set them straight! Why doesn't greet_abe() actually greet Abe? ■ Qustion12345678var name = 'Abe';var greet_abe = function() { return "Hello, " + name + '!';};name = 'Ben';var greet_ben = function() { return "Hello, " + name + '!';};cs ■ My Solution123456789var greet_abe = function() { var name = 'Abe';.. 2016. 6. 6. 이전 1 다음