How to put in array and display?

There are some variables:
var second_massiv = []; 
var a = 45, b = 79

How to place in the array second_massiv numbers a and b, breaking them down into 4,5,7,9? And then output, for example the first value of the array second_massiv[0] = 4 etc.
July 9th 19 at 13:31
1 answer
July 9th 19 at 13:33
function splitNumber(number) {
 number.toString().split(").forEach(number => arr.push(number));

var arr = [];
var a = 45, b = 79;


console.log(arr); // ["4", "5", "7", "9"]
as such to learn? is it really necessary to sit and read all day stupid book?

studied to learn js.javascript
in the end, almost learned nothing (in the scales of js)
for the front-end is more than enough, and even if you do not know the language - Durward_Osinski commented on July 9th 19 at 13:36
What used functions, in your opinion, is missing to learn.or javascript on MDN?

And to be able to collect from the individual functions and structures of language concise and working code need more practice and to think a head and/or read books. If the book is stupid - will have to think more. - Austen.Thompson53 commented on July 9th 19 at 13:39
: Yes, I think practice makes perfect
read, remember - nothing gives as freely to apply what just remember, it will not work - Durward_Osinski commented on July 9th 19 at 13:42
Thank you very much. This option fits me best - nikita.Stracke commented on July 9th 19 at 13:45
: practice makes perfect
I even to the end is not read.... - Edwin.Abbo commented on July 9th 19 at 13:48

Find more questions by tags HTMLJavaScript