AJAX and XMLHttpRequest (XHR)
XMLHttpRequest object can be used to make Ajax calls to request data from the remote server asynchronously.
I have studied this concept from the mentioned youtube channel.
Please check the video. He has demonstrated the concept with examples.
This is how you can write xhr request and get data from local or remote servers.