let journeytocare = (vetexpertise) => { for(let caseindex = 0; caseindex < vetexpertise.cases.length; caseindex++) { if(vetexpertise.cases[caseindex].status === 'earlier') { vetexpertise.cases[caseindex].status = 'wave aside'; } } vetexpertise.reembark = true; if(vetexpertise.reembark && !vetexpertise.notpermitted) { console.log('ready to re-embark on the journey of caring for our furry friends with renewed vigor and expertise from resolving earlier cases.'); } else { console.log('action not permitted, but our passion for veterinary care remains undiminished.'); } };