function print(...args) { args.forEach((arg, index) => { console.log(arg); }); } print('hello', true, new Date());