Understanding the javascript code

Hey!
I was trying to understand the javascript code that you provided in link https://cloud.boltiot.com/static/js/boltCommands.js

I found out difficult to understand it as my javascript course have not reached me about the things written in this code please help and make me understand the code as I am a bit new to the programming

Hi @djasuja2003,

Check my answer here What is boltCommands.js?

Do let me know in case you need any other information.

1 Like

Thank you sir,@rahul.singh1
I understand most of it,but I cannot understand XMLHttpRequest();
I found AJAX a bit difficult

Hi @djasuja2003,

I will suggest you to go though this link https://www.w3schools.com/xml/ajax_intro.asp
In simple term, using ajax you can do request to the URL without reloading your html page.

1 Like

Thank you so much sir.