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];
Kevin_D_Raj
  • 125
  • 1
  • 12

1 Answers1

2

You can't, at least not directly.

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

Quentin
  • 857,932
  • 118
  • 1,152
  • 1,264