Is there a way to use Template Literals to console.log()
a multidimensional array without it being converted into a string?
This example demonstrates the difference between logging an array with and without Template Literals:
const multidimensionalArray = [[1, 2], [3, 4, 5], [6, 7, 8, 9]];
console.log(multidimensionalArray );
// [ [ 1, 2 ], [ 3, 4, 5 ], [ 6, 7, 8, 9 ] ]
console.log(`My nested Array: ${multidimensionalArray}`);
//My nested Array: 1,2,3,4,5,6,7,8,9