Hi Sunil.
DashBoard's scripting is absolutely based on JavaScript but it is used differently than the way one would use it in a web browser or even in a Node.js server.
DashBoard uses Mozilla Rhino as a JavaScript back-end. It provides all basic JavaScript constructs and syntax. We expose a number of objects and functions to extend the scripting layer's reach into the DashBoard application - this is what allows ogScript to send TCP messages, interact with device parameters, write to files, etc. These functions are documented in DashBoard's Custom Panel Development Guide under "ogScript Reference". You can download the guide as a PDF or find by going to Help->Help Contents inside of the DashBoard application.
James
#DashBoard