Posts

What is .md File ?

Image
Understanding .md Files: What They Represent & Why They Matter If you've ever worked with documentation, open-source projects, or GitHub repositories, you've likely come across .md files . But what exactly are they, and why are they so commonly used? What is an .md File? An .md file is a Markdown file , a lightweight markup language used to format text simply and readably. Unlike complex word processors, Markdown allows you to add headings, lists, links, and even code blocks using plain text. Why Use Markdown? Markdown is widely used because: ✅ Easy to Read & Write – No complex formatting tools required. ✅ Highly Portable – Works across platforms and can be converted into HTML, PDF, or other formats. ✅ Popular in Documentation & GitHub – Essential for writing README.md files, wikis, and technical guides. Basic Markdown Syntax Here are some common Markdown formatting styles: Where Are .md Files Used? GitHub & Open Source : Most repositories have a ...

Array of Object to Object of Objects Manipulation using Javascript

Converting Array of Objects into Object of Objects in JavaScript Converting an Array of Objects into an Object of Objects in JavaScript Hey there, JavaScript enthusiasts! 🚀 Today, we’re diving into a fun and practical coding challenge: converting an array of objects into an object of objects. This is a neat trick that can come in handy when you need to transform your data structure for easier access and manipulation. Let’s jump right in! The Challenge Imagine we have an array of objects representing the best film Oscar winners: const best_film_oscar = [ { year: 2024, movie: "Oppenheimer" }, { year: 2023, movie: "Everything Everywhere All at Once" }, { year: 2022, name: "Coda" } ]; Our goal is to transform this array into an object of objects, where the keys are the years, and the values are the movies. The desired output looks like this: const ou...