0

Since a long time, I'm struggling to solve this:

         var obj = {
            Goa: "A",
            Assam: "B",
            "Arunachal Pradesh":"C"
                 }

        alert(obj."Goa")  // Alerts A
        alert(obj."Assam")  // Alerts B
        alert(obj."Arunachal Pradesh")  // But no Alerts

How can I get the alert for the key term Arunachal Pradesh which have 2 words with space between them?

Sowmay Jain
  • 375
  • 2
  • 4
  • 12

0 Answers0