Skip to content
Advertisement

How can the output elements put in an array in javascript?

JavaScript

Here the output is displayed in seperate elements but I want all the elements in a single array.

Advertisement

Answer

You should just create array and push into it:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement