How to add our own functions to the JS link

In the codes where we operate LED and Buzzer with the help of cloud, we used the file
https://cloud.boltiot.com/static/js/boltCommands.js
which contained pre-defined functions. What should i do to add my own functions in this file?

Hello vishal,
The functions which we used in controlling LED and Buzzer are built-in functions in Javascript.
As in many programming languages,we use built-in functions.
So,in order to write your own functions then please do know about the built-in functions
‘how they are built?’ , which helps you to write on your own.
Hope you understood…!!
here is a reference for you: Arduino/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/wiring_analog.c