Javascript Code Formatting

ServiceNow has made programming more accessible to hundreds of new programmers. Many have never programmed before, and may not understand the basics.

One key detail to remember is to always remember to format your code.  Formatting code is the act of placing tabs or spaces in the code to indicate your code structure.

ServiceNow has a notepad icon in most scripts that you can click to format your code. It is ok if you forget to to do this from time to time, but make a habit to format your code and it will look much more professional.

It may not seem a big deal to you if you don't have a programming background. However to an experienced programmer it is an indicator of an amateur if they don't format their code. Experienced programmers use formatted code to "read" code more easily.

Your code is your art.  Even if is just javascript.