-2

Code:

let myClassFellows=[ ['Noor',1],['Jawaria',2]];
console.log(myClassFellows[0]);

Below is the output I want to show without the square brackets

Ananth
  • 787
  • 5
  • 18

1 Answers1

1

What do you mean without square brackets? Like 'Noor', 1? If so, you need to concatenate it into a string with myClassFellows[0].join(', ').

Raphael Koh
  • 111
  • 9