NetSuite uses the Script record to map the function(s) in your source file to specific events that occur in the system. For instance, if you need some business logic to run when a form is saved in the UI, the Script record will tell NetSuite which function to call when the Save Record
event occurs.
You can think of the Script record as defining when our source code should run; it essentially defines something akin to:
"When a record is saved, call the saveRecord function in hello-world.js."
Here is an example of what that Script record would look like: