Free ServiceNow CAD Actual Exam Questions - Question 1 Discussion
Choose 2 answers
D, B. jslog() is definitely meant for client-side, and g_form.addInfoMessage() lets you show messages directly on the form, which can help track what's happening during script execution.
It’s D for sure since jslog() is built for client-side debugging. For the second, I’d go with B. g_form.addInfoMessage() isn’t just for user info; it can be handy to quickly check values or states during debugging on client scripts. A and C are more server-side or error-reporting focused, so they don’t fit as well for debugging client-side issues.
C/D? gs.log() is definitely for logging but mostly server-side. jslog() works well for client scripts, so it fits better for debugging client-side code.
Maybe C and D since gs.log() is good for logs and jslog() is client-side debug.
D imo, since jslog() is client-side; A is less for debugging, more for error reporting.
C/D? gs.log() is definitely used for logging, but it’s mostly server-side. jslog() is clearly client-side and meant for debugging. Between addInfoMessage() and addErrorMessage(), I’d say addInfoMessage() shows messages on the form which can help debug user interactions better. So D and B seem like the best picks from a pure client-side debugging angle.
I’d go with D and A here. jslog() is definitely client-side, and gs.addErrorMessage() is more server-side, but the question asks for debugging client scripts, so A seems off. D and B make more sense. D, B
D, B. jslog() is definitely a client-side debugging tool. g_form.addInfoMessage() shows messages to users on the form, so it can help debug client scripts by giving feedback. But I’m not sure if that counts strictly as debugging in this context. Can anyone confirm if addInfoMessage() is considered a debugging strategy here, or is it just for user notifications? Also, gs.log() is server-side, right? So that wouldn’t apply.