-
Notifications
You must be signed in to change notification settings - Fork 22
Create an (Javascript) object
bartbutenaers edited this page Jul 26, 2021
·
2 revisions
An object is a collection of (related) information, for example a person has a name and a birthdate. The name and birthdate are the property names or keys. Each property has also a value, e.g. 'name' = 'Bart Butenaers'. This means you can consider an object as key/value pairs.
A Node-RED message is an example of such an object.
The following animation shows how to create a new output message object with a 'prop1' property and a 'prop2' property, each containing as content an list (i.e. an array) with integers numbers: