Activity

  Dennis Hackethal commented on criticism #3950.

Code blocks need syntax highlighting.

Veritula used to have this feature but I removed it when diffing changed.

#3950·Dennis HackethalOP, 1 day ago

When the code overflows horizontally, a subtle inset shadow on the side shows that you can scroll:

const posts = [
  {id: 1, title: "Understanding JavaScript Closures in Depth", url: "https://example.com/articles/javascript-closures-deep-dive"},
  {id: 2, title: "A Complete Guide to Modern Web Development Practices", url: "https://example.com/articles/modern-web-dev-guide"},
  {id: 3, title: "Exploring the Node.js Event Loop and Async Patterns", url: "https://example.com/articles/nodejs-event-loop"}
];

function formatPost(post) {
  return `${post.id}: ${post.title} -> ${post.url}`;
}

function prettyPrint(posts) {
  return posts.map(formatPost).join(" | ");
}

console.log(prettyPrint(posts));