How to print elements from array with javascript

I have array with elements for example array = [“example1”, “example2”, “example3”]. I don’t know how to print in this format: 1. example1 2. example2 3. example 3…Any help?

Leave a Comment