We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Send Message

Assignment

Create a SendMessage method for the User struct.

It should take a message string and messageLength int as inputs.

If the messageLength is within the user's MessageCharLimit, return the original message and true (indicating the message can be sent), otherwise, return an empty string and false.