Skip to content
Advertisement

How I can show some element inline using method map?

I have such array: let arr = [1,2,3,4,5,6,7,8,9,10]

And I want to display the list of these numbers, so I made like this:

JavaScript

So, and it gives me this output:

JavaScript

Could I show 3 elements per line?

JavaScript

Advertisement

Answer

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