Mark As Completed Discussion

Are you sure you're getting this? Click the correct answer from the options.

What will be the outcome of the following code block on execution?

JAVASCRIPT
1var example_obj = {"a": 1, "b":2, "c":3, "d":4}
2console.log(example_dict[0])

Click the option that best answers the question.

  • "1"
  • "undefined"
  • "b"
  • "An error will occur"