I'm trying to make a javascript program that will pick a departure and arrival city for imaginary flights. I've tried to go about it a couple different ways, I have this so far, but its still not working...(this is just for the arrival city)
Arrive
<p id = "arrival"></p>
<script type = "text/javascript">
function arriveRandom() {
var arv = ["Houston" , "Atlanta" , "Honolulu" , "Paris"];
var dept = ["Atlanta" , "Salt Lake City" , "Kennedy Intl" , "Los Angeles" , "San Fransisco"];
var randArv = randomGenerator(0, arv.length);
var item = array[randArv]
document.getElementById("arrival").innerHTML = "item";
}