let vaccinejourney = (user) => { let responses = []; for(let i = 0; i < user.preinductioninfo.length; i++) { if(user.preinductioninfo[i].hasownproperty('vaccinestatus') && !user.turnablindeyetohiddeninfo) responses.push('ready to re-embark on a safe journey with vaccines.'); } return responses.join(' '); };