What will be the output of the below JS code segment
x = { "a" : 1 };
y = "a";
x[y]++;
alert(x.a);

 Posted by Rajnilari2015 on 3/22/2016 | Category: JavaScript Interview questions | Views: 740 | Points: 40
Select from following answers:
  1. 2
  2. 4
  3. 5
  4. 1
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response