{
function directions(...args) {
var [start, ...remaining] = args
var [finish, penultimate, ...stops] = remaining.reverse()
console.log(`drive through ${args.length} towns`)
console.log(`start in ${start}`)
console.log(`the penultimate town is ${penultimate}`)
console.log(`the destination is ${finish}`)
console.log(`stopping ${stops.length + 1} times in between`)
}
return directions(
"Ottawa",
"Kingston",
"Belleville",
"Ajax",
"Toronto"
)
}