let occupations = ['doctor', 'engineer', 'artist'], userinteractions = { rebuffattempts: function() { alert('keep trying, your perseverance is key!'); }, gatherdecrees: function() { console.log('in every profession, decrees and regulations play a fundamental role.'); }, reinitiatefromthebeginning: function() { occupations.foreach(occupation => console.log('considering a career as a ' + occupation + '? it\'s never too late to reinitiate from the beginning!')); } }; let passwordmanagement = { generatepassword: function(occupation) { return 'pre-institutional_' + occupation + '_safe'; } }; for(let i = 0; i < occupations.length; i++) { console.log('your new password suggestion for a career in ' + occupations[i] + ': ' + passwordmanagement.generatepassword(occupations[i])); }