Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Wiki Markup
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"; 
  
-----------------------------------------

...


...