Question about proper name for the code shown in this post

I have the following block of code in my story’s JS section. And I’ve successfully used it elsewhere in my story. My question is, what’s the proper term or name for this? Is it an object? A generic object? Something else? I don’t have a background in javascript.

setup.alien = {
	"head": "a curving, elongated skull reminiscent of the monster in the 1979 Ridley Scott film 'Alien'",
    "chest": "a bifurcated exoskeleton of interlocking chitinous plates",
  	"legs": "digitigrade, without plating but covered in a keratinous protective layer", 
  	"hands": "scaly gray, each with an opposable thumb and //five// triple-jointed fingers",
  	"carried": ["a metallic mesh belt", "an egg-shaped device", "a small gray capsule"]
}

In Javascript, that is an object.

2 Likes

Thanks, Zarf. So it’s an object, and “head”, “hands”, etc. are members specified using dot notation, if I understand what I’ve been reading.

“Members” isn’t wrong, but “properties” is the more usual term in JavaScript…

1 Like

@kyrathasoft
As there are many types of objects in JavaScript (like Array and Date), the type of object you are defining with that object-literal based assignment is often called a Generic Object.

2 Likes

When I needed to refamiliarise myself with Javascript to build the Rez browser runtime the Modern Javascript tutorial was a very useful resource.

1 Like