2

My output goal was this: [[4, 1]]

 const num1 = [[1]];

num1[0].push(4);
console.log(num1); //result is [[1, 4]];

``
Miloš Leng
  • 91
  • 1
  • 9

0 Answers0