const socialMedia = ['Facebook', 'Twitter', 'Instagram', 'LinkedIn'];
function publishPost(post) {
socialMedia.forEach(function(platform) {
console.log(`Posting to ${platform}: "${post}"`);
});
}
let post = 'Check out my new blog post!';
publishPost(post);