{"slug": "day-173-of-learning-mern-stack", "title": "Day 173 of Learning MERN Stack", "summary": "A developer documented Day 173 of their full-stack engineering track, focusing on TypeScript's type inference versus type annotations. The developer demonstrated how the compiler automatically infers types, such as assigning a string to a variable, and highlighted the benefits for code maintainability.", "body_md": "Hello Dev Community! 👋\n\nIt is officially **Day 173** of my full-stack engineering track! Today, I explored one of the core mechanisms that make **TypeScript** powerful and developer-friendly: **Type Inference vs. Type Annotations**! 📘⚡\n\nUnderstanding when to let the TypeScript compiler infer types automatically versus declaring them explicitly makes codebases cleaner and more maintainable.\n\nAs captured in my code editor setup (** index.ts**):\n\n``` js\ntypescript\n  let drink = \"Chai peyo\"; // Inferenced as type string\n  // drink = 0; // Error: Type 'number' is not assignable to type 'string'.\n```\n\n", "url": "https://wpnews.pro/news/day-173-of-learning-mern-stack", "canonical_source": "https://dev.to/ali_hamza_589ec7b3eb6688d/day-173-of-learning-mern-stack-36b5", "published_at": "2026-08-16 07:25:32+00:00", "updated_at": "2026-08-16 07:41:12.062807+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["TypeScript"], "alternates": {"html": "https://wpnews.pro/news/day-173-of-learning-mern-stack", "markdown": "https://wpnews.pro/news/day-173-of-learning-mern-stack.md", "text": "https://wpnews.pro/news/day-173-of-learning-mern-stack.txt", "jsonld": "https://wpnews.pro/news/day-173-of-learning-mern-stack.jsonld"}}