I want to find how many 25 can fit into a number example 100 should return [25, 25, 25 ,25]
At the moment I have this code
let quarterAmount = parseInt(argument / 25)
sum.push( 25 * quarterAmount )
However when I return the sum variable it will give me [100] instead of the desired array of 25.
I have tried many variations of my code and I always get the same results
sum.push( '25' * quarterAmount )
sum.push( [25 * quarterAmount] )
sum.push( [25] * quarterAmount )
I want to be able to add quarterAmount amount of [25] to my array, how can I acomplish this?