Programming in java script

In the section of “Home Automation”
Bolt IoT team already given the javascript commands program in backend i…e… in the source: “” Then we are doing half end work in that case. Is it okay to leave that above-mentioned commands program or else we have to learn that also? If we need to learn that code please anyone gives a detailed explanation of that.
Thanks in advance.

first we are declaring variables.
in digitalwrite() function we are passing pin and value.
based on the current state it will perform operations.

hlo, I am not asking about that program but i was asking about this:

I guess no need to understand that java code if u don’t know java script’,just go through the entire code once , understand the basic commands like innerHTML and other commands based on previous lectures.
Thank you