String or Number Indexes

This lesson discusses the two ways to access an index.

We'll cover the following...

The index signature can define members of an object with an identifier with square brackets.

myObject["memberName"] = "Value Here";

The identifier type can only be a string or a number. The identifier is the name between the brackets. In the previous example, it was memberName. In the ...