Module 6.4 Flashcards
This is reusable server-side JavaScript. Has a library of functions. Not executed until called.
Script include
Safeguard intellectual property by making artifact logic what?
Read only or not visible
Do protection policies prevent other developers on the application instance from viewing or editing application artifacts?
No
Protection policies only apply when applications are installed from the servicenow App Store
True
What is the anatomy of a utils script include? Utils script includes have a standard format
Create class
Create prototype (initialize function, other functions)
Include utils script includes (this step is not mandatory)
Call utils method
When creating a class and prototype for a script include the script name must match what?
The class name
When creating a class and prototype for a script include the prototype function contains logic all objects instantiated from the class will have access to (t/f)
True
This is an example of:
var ClaimsUtils = Class.create();
ClaimsUtils.prototype = { initialize: function ()
A utils script include prototype definition
The initialize function (for a script include) is automatically invoked when?
when JavaScript objects are instantiated
Any object instantiated from the (utils script include) class will have access to what?
The variables defined in the initialize function
Can utils functions be called from other scripts?
Yes
Do utils functions have access to initialize function variables?
Yes
Is explicitly calling a script include from another script required?
No
Instantiate (create) an object from the script include class to call utils functions (t/f)
True