Skip to main content

JavaScript Fundamentals

Before we write any code in ServiceNow, it is important to understand the fundamentals of JavaScript. Many learn how to write code in ServiceNow without really understanding JavaScript, myself included. At Knowledge 13, I took the pre-conference training course Scripting in ServiceNow. A prerequisite included going to the Codeacademy website and running through a JavaScript tutorial that took about an hour. That hour introduced me to declaring variables, working with iterators (loops), and writing a basic function.

In this section, we'll do the same. It'll take a bit more than an hour, but hopefully you'll come away with a more comprehensive understanding of JavaScript as a better foundation that I had before I started learning how to write code in ServiceNow.