How to I avoid printing of an array'elements to the console not to form new line using for loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to I avoid printing of an array'elements to the console not to form new line using for loop

Printing of an array to the console without a new line

30th Dec 2020, 5:54 PM
INERTIA
INERTIA - avatar
3 Answers
+ 2
console.log(array) or add each element to a string and then output that string in the end
30th Dec 2020, 6:04 PM
Lisa
Lisa - avatar
0
Thank you very much
30th Dec 2020, 6:15 PM
INERTIA
INERTIA - avatar
0
I am very grateful
30th Dec 2020, 6:15 PM
INERTIA
INERTIA - avatar