Sail E0 Webinar
Question
Suppose x is defined as follows:x = [ 'a', 'b', { 'foo': 1, 'bar': { 'x' : 10, 'y' : 20, 'z' : 30 }, 'baz': 3 }, 'c', 'd']What is the expression involving x that accesses the value 30?
Options:
A .  x[2]["bar"]["z"]
B .  x[2]["bar"]
C .  x["bar"]["z"]
D .  x[2]["bar"]["z"][3]
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers