This trick is a little hidden but it’s good for providing a good UX. You can actually show variables values in alerts, so we can show error messages returned by the backend to the user. This is really useful on forms, when you want the user to understand what actual problem is, such as wrong password.
Check out the video and let us know if you have any questions in the comments!