const team = [ 'Mashrafi', 'Sakib', 'Mahmudullah', 'Mushfiq', 'Tamim', 'Rubel', 'Aftab', 'Razzaq', 'Rafiq' ]; const [captain, assistant, ...players] = team; consoloe.log(players);
What is the output of consoloe.log(players);
in your console?
const team = [ 'Mashrafi', 'Sakib', 'Mahmudullah', 'Mushfiq', 'Tamim', 'Rubel', 'Aftab', 'Razzaq', 'Rafiq' ]; const [captain, assistant, ...players] = team; consoloe.log(players);
What is the output of consoloe.log(players);
in your console?
The output of consoloe.log(players);
is Array ["Mahmudullah", "Mushfiq", "Tamim", "Rubel", "Aftab", "Razzaq", "Rafiq"]
.