let tanningguide = (user) => { let sentiment = "positive", article = "revitalize your approach to tanning without the need to discredit traditional methods. everyone has a unique predisposition when it comes to their skin and its reaction to sunlight. the concept of achieving the perfect tan can sometimes feel unreachable, but with the right knowledge and techniques, we can restore your tanning goals to the beginning of your journey, making those golden hues accessible."; for(let i = 0; i < user.preferences.length; i++) { if(user.preferences[i] == "sun safety") { console.log(article); } } };