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 51 discussion

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

Which one of the following is NOT a method used for logging messages in a server-side script for a privately-scoped application?

  • A. gs.log()
  • B. gs.error()
  • C. gs.warn()
  • D. gs.debug()
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://community.servicenow.com/community?id=community_question&sys_id=bd71cb29db98dbc01dcaf3231f9619c6

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
VirtuaLee
Highly Voted 2 years, 7 months ago
Scoped Application Script Logging gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions.
upvoted 5 times
...
manikanta_gnbv
Most Recent 8 months, 1 week ago
Selected Answer: A
gs.log is not used in scoped applications
upvoted 2 times
...
xxshinichan
1 year, 5 months ago
gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions. Reference: https://developer.servicenow.com/dev.do#!/guides/utah/now-platform/tpb-guide/debugging_best_practices
upvoted 3 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 ...