Submodule 13.3: Object Notation
Examples - Exercices
Example 1
Exercise
- Suppose that we want to have the results
"Interdimensional travel"
and2016
. Which are the appropriate commands for these results?
superHeroes['members'][2]['powers'][4]
superHeroes.formed
Example 2
Exercise
- Suppose that we want to have the results
"Damage resistance"
and"Madame Uppercut"
. Which are the appropriate commands for these results?
superHeroes[1].powers[1]
superHeroes[1].name
See more about JSON