Objects are a way of storing data in a variety of programming languages such as JavaScript and Khan Academy's Processing JavaScript environment. The syntax is:var a = {
b : value
c : value2
};
Where a
is the name of the object, b
and c
are keys, and value
and value2
can be anything such as numbers, strings, arrays, functions, or even another object!
Advertisement
Objects (documentation)
Advertisement