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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nsmcan
Highly Voted 3 years, 2 months ago
Correct answer is D: Self-invoking. Learn JavaScript!
upvoted 14 times
Hmzpkts
1 year, 2 months ago
True and.. easy man!
upvoted 1 times
...
...
Vinothkumar_Rangasamy
Highly Voted 2 years, 10 months ago
Correct Answer is "D"
upvoted 7 times
...
A7mad5aled
Most Recent 1 week, 6 days ago
Selected Answer: C
C and D are correct because the function is called directly = self-invoking it doesn't have name = anonymous
upvoted 1 times
...
chuks100
7 months ago
D is correct
upvoted 1 times
...
brutaltea
1 year, 2 months 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, 2 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). 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, 4 months ago
Selected Answer: D
It is self invoking
upvoted 1 times
...
SarojPatel
1 year, 10 months ago
in javascript ut is called immediate invoked function /self invoking function
upvoted 2 times
...
X_Venkat
1 year, 11 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
2 years 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, 2 months ago
Selected Answer: D
in javascript it's called self-invoking
upvoted 3 times
...
rpersonal2
2 years, 2 months ago
Selected Answer: D
self Invoking
upvoted 2 times
...
rpersonal2
2 years, 2 months ago
Correct answer is D - self-invoking. Its NOT a constructor.
upvoted 2 times
...
Farnous
2 years, 4 months ago
Selected Answer: D
D is the correct one
upvoted 2 times
...
Gurubala
2 years, 4 months ago
Selected Answer: D
D is correct
upvoted 2 times
...
parcerocarl
2 years, 7 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago