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.
customerName
greetCustomer()
sendMessage()