JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Journey of this.developer
Journey of this.full-stack-developer
Journey Resources
Task
Journey Blog
Week of 8/1/2021
More
Share
Explore
JavaScript
objectName.propertyName
Like all JS variables, both the object name and property name are case sensitive. You can define a property by assigning it a value.
var myCar = new Object();
myCar.make = 'Ford';
myCar.model = 'Mustang';
myCar.year = 1969;
Written using an
object initializer
var myCar = {
make: 'Ford',
model: 'Mustang',
year: 1969
};
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.