Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active December 23, 2021 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/77128e86274a049a3b32185b90bcb4f2 to your computer and use it in GitHub Desktop.
Save McLarenCollege/77128e86274a049a3b32185b90bcb4f2 to your computer and use it in GitHub Desktop.
Print Vacation Spots

Given an input array print the following output using a for loop

I would love to visit Bali.
I would love to visit Phuket.
I would love to visit Goa.
I would love to visit Kochi.
I would love to visit Sydney.

CODE TEMPLATE


function printVacationSpots(vacationSpots){
// write your code here
}
let vacationSpots = ['Bali', 'Phuket', 'Goa', 'Kochi', 'Sydney'];
printVacationSpots(vacationSpots);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment