Now my code looks more organized and I love to code this way. — As we all know that we learn gradually. I was using ajax requests directly, it was working but my new way is more interesting and good for me. I am a mid-level developer, and I really enjoy when I use promises, async, and arrow functions for ajax requests. So before…