Consider following code snippet:
var r = ['a', 'l', 'p', 'h'];      

r.length = 10; 
//a. r.length = ?     
delete r[0]; 
//b. r.length = ?
What will be the value of length in a and b lines?

Thanks, @iliana000 ! Fixed :)

2016 Jan 20, 4:43:35 PM

// Arlength =? delete r [0]; // Brlength =? WTF?

2016 Jan 17, 2:24:22 PM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes