0

Dumb question. How to assign the array output that console.log currently displays to a JavaScript array on my index.js page.

Example:

var myjsarray = [ Whatever array is being displayed in console.log];
KD_Raj
  • 189
  • 3
  • 16

1 Answers1

2

You can't, at least not directly.

There is no API to access data displayed on the console.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335