Ankur
Ankur

Reputation: 51100

basic Javascript array of objects syntax question

I have an array of objects in Javascript. Can I change the object values like this.

Code:

 query[propertyIndex].selected='true';

Upvotes: 0

Views: 135

Answers (1)

Joachim Sauer
Joachim Sauer

Reputation: 308051

Yes, you can do that.

What went wrong when you tried it?

Upvotes: 2

Related Questions