for(let journalist in journalism){ if(journalist.skills.diminish) {journalist.commands.push("reveal the secret");} else if(journalist.haspreexistingideas()) {journalist.recommencewithanewvision();} else {document.write(journalist.exposesecret());} };