You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

In coding RAMP-TS scripts in JavaScript these code fragments are all standard and equivalent:


x = new Object();
x.a = 1;
x.b = "Hello";

-----------------------------------------

x = { a : 1, b : "Hello" )

-----------------------------------------

x = { "a" : 1, "b" : "hello" }  <========= which is the JavaScript format that was chosen for use in AJAX-JSON strings.  

-----------------------------------------

x = { };
x["a"] = 1;
x["b"] = "hello";

-----------------------------------------

x = new Object();
x["a"] = 1;
x["b"] = "hello";

-----------------------------------------

















  • No labels