Standard JavaScript data types are available, and Data Relationship Management uses them wherever possible. For example, dates are represented using the Date object. Functions are themselves objects, and a function invoked with new creates an object whose prototype points to the function's constructor prototype just as in any ECMA-compliant JavaScript environment.
Note: | JavaScript Document Object Model (DOM) objects are not supported in Data Relationship Management scripts. |
You must be familiar JavaScript syntax and built-in objects, including what methods are available. Some of the available data types:
Array––Includes length, pop, push, concat, join, reverse, slice, shift, sort, and so on
Boolean––Represents True and False
Date––Includes Date.parse(), month, day, year, and so on
Error––Uses try/catch error handling and access error.message
Function––Supports the standard call and apply functionality
Math––Includes random, max, pow, round, sin, cos, floor, sqrt, log, and so on
Number––All numbers in JavaScript are of the floating-point type number
RegExp––You can use language support for Regular Expressions or access them explicitly
String––Includes concat, indexOf, lastIndexOf, substr, split, splice, search, replace, toUpperCase, toLowerCase, and so on
Globally available functions like parseInt, parseFloat, isNaN, decodeURI, encodeURI are also available.