How to Access and Change a Dynamic Property

Object literal syntax, dot and bracket notation, property keys as expressions

Photo by the author

This short post will analyze how to access and then change a dynamic property of an object in JavaScript.

Before starting, just a quick question. What is an object?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store