Javascript in Servicenow is complicated

Look, it doesn't help that JS is complicated subject already in the world, but in ServiceNow, it's even more complicated.

Here's why.

The version of Javascript depends where you are in the platform.

  • Client Scripts run in the browser and support whatever version the browser supports, regardless of the linting rules they show you.
  • Server Scripts run on the server and use either

Source: https://nowlearning.servicenow.com/lxp/en/pages/learning-course?id=learning_course&course_id=8cdb2ad5975de9505b0b7ec11153af34&child_id=eaeeae99975de9505b0b7ec11153af07&spa=1