JavaScript program to print an array using for() loop and if else() statement

Published --