start
This is an old revision of the document!
Table of Contents
Welcome to S N O
JavaScript Snippets
Getting Started
// gs.info('Hello, world!');
// var gr = new GlideRecord('task'); gr.addActiveQuery(); gr.query(); while (gr.next()) { gs.info(gr.getValue('number')); }
// function onLoad() { alert('Current state value is: ' + g_form.getValue('state')); }
Statements and Syntax
Variables
Simple Arithmetic Operators
Common Error Messages
Introduction to Strings
Special String Characters
Data Type Conversions
Commenting
Comparisons
If Statements and Boolean Logic
The Ternary Operator
The Switch Statement
Truthy Falsy
While Loop
For Loop
Do While Loop
Nested Loops
Functions
Try Catch Finally Statements
SNOW Glide Record
Getting
Introduction to Arrays
Array For Each
Common Array Methods
SNOW Array Utility
Introduction To Objects
Checking If Object Has Property
Finding All Properties in Object
Array of Objects
JSON Stringify and Parse
More String Methods
Recursion
Classes
Passing Objects to Functions
Class Inheritence
Scripted REST API
start.1708366554.txt.gz · Last modified: 2024/02/19 10:15 by johnsonjohn