Amit Gujarathi
Giga Sage
Giga Sage

Hi All,

I hope you're doing great.


In today's tutorial, we will be looking into Javascript functions and how we can use Javascript functions in Servicenow.


Javascript functions make your code more readable, more reusable, and more robust.


Let's first try to understand what functions in Javascript.

  • Functions are one of the fundamental building blocks in JavaScript.
  • A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output.
  • To use a function, you must define it somewhere in the scope from which you wish to call it.

The agenda of this video:

1. What are JavaScript functions
2. Advantages of JavaScript function
3. How we can use JavaScript functions on ServiceNow
4. Demo examples

 

Please be sure to bookmark this article as well as mark it as Helpful if you thought it was helpful.

 

Regards,

Amit Gujarathi

Technomonk Youtube 

Amit Gujarathi Linkedin 

TheTechnomonk.com 

ServiceNow Community Amit Gujarathi 

Comments
Community Alums
Not applicable

Best explanation I have seen. I am self-taught and have struggled with functions...

Version history
Last update:
‎02-02-2023 09:45 PM
Updated by:
Contributors