// Random vacation lottery
// Author: Louis Amoah-Nuamah
const randomChoice = (n) => {
return Math.floor(Math.random() * n)
};
// uncomment code below to test random pick
//console.log(randomChoice());
let destinationArr = [{continent:'Africa',cities:['Accra','Cairo','Johannesburg']}, {continent:'Europe',cities:['London','Berlin','Athens']},
{continent:'North America',cities:['Miami','Vancouver','Cancun']}, {continent:'South America',cities:['Quito','Bogota','Rio de Janeiro']},
{continent:'Asia',cities:['Bali','Tokyo','Shanghai']}, {continent:'Oceania',cities:['Sydney','Queenstown','Vanua Levu']}];
const outputs = {
travelPackage: ['couple\'s', 'Group of 4', 'Single\'s nightlife' ],
destination: [],
set destinations(destinationArr) {
this.destination = destinationArr;
This file has been truncated. show original