When you find a script field in ServiceNow, it will have some additional features that allow you to create/write your scripts with extra functionalities than you would in a simple text field.
For Live Demonstration you can watch below video.
Script editor has 5 feather
-
- Real-time syntax checking
- Toolbar
- Syntax highlighting
- Scripting assistance
- Links to API documentation