function printAnArrayWithAGivenDelimiter(input) { let delimiter = input.pop(); console.log(input.join(delimiter)); }