I need to create a function name DBReport to a fila name sonic.js.. the arguments are (layerNo, tableID, itemID, type, keyValue) to output a record. So I did it like this, not sure if this is the right format.

WRITTEN ON MY SPECS: sonic.js file to add a new method. To format as well as the definition of an existing API. (Overview, arguments, return values, remarks, property description comments) Add a DBReport method (record)

Sorry if my question seems confusing.. I have 2 files.. app.js and sonic.js.. this function is to output a record of data.. I don't have any idea about javascript because this is really the first time I'm goint to use javascript.