Challenges

Fix the Scope Error

The code tries to use the variable customerName in two different methods, but it was only declared inside one. This causes a scope error. Move the variable so both greetCustomer() and sendMessage() can access it.

Editor
Test Results

Result Panel

Hit the run button to test your code!