In this video we will be creating the update() function in our Javascript code to allow us to display our retrieved messages to the user.
Note: The username variable in the update() function is not needed, we don’t need pass any parameters to the get-messages.php page.

Source Code:

Don’t forget to like, favourite and subscribe for more!