Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

Exam CAD topic 1 question 18 discussion

Actual exam question from ServiceNow's CAD
Question #: 18
Topic #: 1
[All CAD Questions]

Here is the Business Rule script template:

This type of JavaScript function is known as:

  • A. Constructor
  • B. Scoped
  • C. Anonymous
  • D. Self-invoking
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nsmcan
Highly Voted 3 years, 1 month ago
Correct answer is D: Self-invoking. Learn JavaScript!
upvoted 14 times
Hmzpkts
1 year ago
True and.. easy man!
upvoted 1 times
...
...
Vinothkumar_Rangasamy
Highly Voted 2 years, 8 months ago
Correct Answer is "D"
upvoted 7 times
...
chuks100
Most Recent 5 months, 3 weeks ago
D is correct
upvoted 1 times
...
brutaltea
1 year, 1 month ago
Selected Answer: D
D https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_learnv2_scripting_utah_business_rule_scripts
upvoted 1 times
...
ravidamarla
1 year, 1 month ago
Notice the template syntax. The function syntax is known in JavaScript as a self-invoking function or an Immediately Invoked Function Expression (IIFE). The function is immediately invoked after it is defined. ServiceNow manages the function and when it is invoked; developers do not explicitly call Business Rule scripts. Reference Link: https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_learnv2_scripting_utah_business_rule_scripts
upvoted 1 times
...
Anu_K
1 year, 3 months ago
Selected Answer: D
It is self invoking
upvoted 1 times
...
SarojPatel
1 year, 9 months ago
in javascript ut is called immediate invoked function /self invoking function
upvoted 2 times
...
X_Venkat
1 year, 10 months ago
Notice the template syntax. The function syntax is known in JavaScript as a self-invoking function or an Immediately Invoked Function Expression (IIFE).
upvoted 2 times
...
Bob_Loblaw
1 year, 11 months ago
"The template's process function, known as a self-invoking or immediately invoked function expression, is automatically invoked when a resource is accessed." https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/servicenow_application_developer/app_store_learnv2_rest_rome_resource_script
upvoted 2 times
...
amineHTB
2 years, 1 month ago
Selected Answer: D
in javascript it's called self-invoking
upvoted 3 times
...
rpersonal2
2 years, 1 month ago
Selected Answer: D
self Invoking
upvoted 2 times
...
rpersonal2
2 years, 1 month ago
Correct answer is D - self-invoking. Its NOT a constructor.
upvoted 2 times
...
Farnous
2 years, 3 months ago
Selected Answer: D
D is the correct one
upvoted 2 times
...
Gurubala
2 years, 3 months ago
Selected Answer: D
D is correct
upvoted 2 times
...
parcerocarl
2 years, 5 months ago
D, that´s an IIFE which stands for inmediately invoked Function Expression
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...