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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nsmcan
Highly Voted 2 years, 6 months ago
Correct answer is D: Self-invoking. Learn JavaScript!
upvoted 13 times
Hmzpkts
6 months, 1 week ago
True and.. easy man!
upvoted 1 times
...
...
Vinothkumar_Rangasamy
Highly Voted 2 years, 2 months ago
Correct Answer is "D"
upvoted 7 times
...
brutaltea
Most Recent 6 months, 1 week 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
6 months, 2 weeks 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
9 months ago
Selected Answer: D
It is self invoking
upvoted 1 times
...
SarojPatel
1 year, 2 months ago
in javascript ut is called immediate invoked function /self invoking function
upvoted 2 times
...
X_Venkat
1 year, 3 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, 4 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
1 year, 6 months ago
Selected Answer: D
in javascript it's called self-invoking
upvoted 3 times
...
rpersonal2
1 year, 6 months ago
Selected Answer: D
self Invoking
upvoted 2 times
...
rpersonal2
1 year, 6 months ago
Correct answer is D - self-invoking. Its NOT a constructor.
upvoted 2 times
...
Farnous
1 year, 8 months ago
Selected Answer: D
D is the correct one
upvoted 2 times
...
Gurubala
1 year, 8 months ago
Selected Answer: D
D is correct
upvoted 2 times
...
parcerocarl
1 year, 11 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 ...