Prasham Ashesh Posted on Oct 24, 2019 Weird Javascript? #javascript #array #object #length const a = [1] a[3] = 3 console.log(a.length); //What do you expect the output to be? Top comments (1) Subscribe Submit Preview Dismiss Collapse Expand Prasham Ashesh Prasham Ashesh Prasham Ashesh Follow Have been a developer all these years, evolving now to be an engineer. Like react, loving JS. Location Gurgaon Work Software Engineer at Allbound Joined Oct 23, 2019 • Oct 24 '19 Dropdown menu Copy link Hide Answer: 4 Code of Conduct • Report abuse
Top comments (1)
Answer: 4