Module 6.4 Flashcards

1
Q

This is reusable server-side JavaScript. Has a library of functions. Not executed until called.

A

Script include

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Safeguard intellectual property by making artifact logic what?

A

Read only or not visible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Do protection policies prevent other developers on the application instance from viewing or editing application artifacts?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Protection policies only apply when applications are installed from the servicenow App Store

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the anatomy of a utils script include? Utils script includes have a standard format

A

Create class
Create prototype (initialize function, other functions)
Include utils script includes (this step is not mandatory)
Call utils method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When creating a class and prototype for a script include the script name must match what?

A

The class name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This is an example of:

var ClaimsUtils = Class.create();
ClaimsUtils.prototype = { initialize: function ()

A

A utils script include prototype definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The initialize function (for a script include) is automatically invoked when?

A

when JavaScript objects are instantiated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Any object instantiated from the (utils script include) class will have access to what?

A

The variables defined in the initialize function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can utils functions be called from other scripts?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Do utils functions have access to initialize function variables?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is explicitly calling a script include from another script required?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Instantiate (create) an object from the script include class to call utils functions (t/f)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly