You have an array of planets:
const planets = ["Earth", "Jupiter", "Neptune"];Complete a showPlanets function below to display the name of each planet via the console.log.
You have an array of planets:
const planets = ["Earth", "Jupiter", "Neptune"];Complete a showPlanets function below to display the name of each planet via the console.log.
Sample Input 1:
Sample Output 1:
Earth
Jupiter
NeptuneCreate a free account to access the full topic