Day 28 of my Frontend Development Journey 🚀 Today I focused on learning Async and Await in JavaScript, which makes working with asynchronous code much easier and cleaner. What I learned today: • How async functions work in JavaScript • Using await to handle asynchronous operations • How async/await improves code readability compared to .then() chains • Handling errors using try...catch • Understanding how async/await works with API requests Practicing async/await helped me understand how modern applications handle data fetching and background operations more efficiently. Step by step, I’m getting more comfortable with writing cleaner and more readable JavaScript code. Continuing to learn and build every day! #Day28 #JavaScript #FrontendDevelopment #WebDevelopment #LearningInPublic #100DaysOfCode
Learning Async Await in JavaScript for Cleaner Code
More Relevant Posts
-
💻 5 React mistakes I stopped making (and it improved my code a lot) When I started with React, I used to write code that worked… But not code that was clean, scalable, and maintainable. Here are 5 mistakes I fixed: ❌ 1. Writing everything in one component 👉 Now I break UI into small reusable components ❌ 2. Ignoring proper state management 👉 Learned when to use useState vs useEffect vs lifting state ❌ 3. Not handling performance 👉 Started using memoization (useMemo, useCallback) ❌ 4. Poor folder structure 👉 Now I follow a clean project structure ❌ 5. Debugging randomly 👉 Now I debug step-by-step with proper logs Small changes… but huge difference in code quality 🚀 Still learning every day 👨💻 Which mistake did you make the most? 😅 #ReactJS #FrontendDevelopment #JavaScript #CleanCode #WebDevelopment #SoftwareEngineer
To view or add a comment, sign in
-
🚀 Day 37 — #useRef() Hook in #React Today I learned about the useRef() Hook in React 🔗 Introduced in React 16.8, useRef() is available in functional components and helps us directly access DOM elements. It works similarly to document.querySelector() in plain JavaScript, but in the React way. ✅ Key Learning useRef() stores a mutable value in .current and updates it without causing a component re-render. 💡 Perfect for DOM access, focus management, timers, and storing previous values. 🔥 Slowly moving deeper into advanced React hooks. #React #useRef #ReactHooks #FrontendDevelopment #JavaScript #10000 Coders
To view or add a comment, sign in
-
-
A lot of developers struggle with JavaScript object transformations, and I was definitely one of them. It was never about the basics of JavaScript, but more about situations where I had to: - reshape API responses - deal with deeply nested objects - combine arrays and objects in a clean and predictable way These problems look simple when you read them, but they become surprisingly confusing when you actually try to implement them. I also realized that these types of problems are very commonly asked in interviews, which makes this skill even more important. So I decided to practice them deliberately instead of just hoping to get better over time while building features. I started doing small exercises and focused only on understanding how to transform data clearly and step by step. Over time, this practice made a noticeable difference in: - how I approach problems - how I break down data - how confident I feel when working with real-world inputs That is why I put together this drill: https://lnkd.in/gBMxBz7c The problems might look simple at first glance, but if you take them seriously, they can have a strong impact on how you think and write JavaScript. #javascript #frontend #reactjs
To view or add a comment, sign in
-
hi connections Day 18 of 30: Mastering Debouncing in JavaScript! Today's LeetCode challenge is a must-know for any frontend or full-stack developer: Debouncing. 🛠️⏱️ The Goal: Write a function that delays execution until a certain amount of time has passed since the last time it was invoked. The Lesson: Debouncing is all about Performance Optimization. Without it, features like search-as-you-type or window resizing can trigger hundreds of unnecessary function calls per second, slowing down the entire application. By using clearTimeout and setTimeout in tandem, we create a "cooling off" period that ensures our code only runs when it's actually needed. It’s a simple yet powerful way to build smooth, professional user interfaces. The deeper I go into this 30-day challenge, the more I realize that great coding isn't just about making things work—it's about making them work efficiently! #JavaScript #WebDevelopment #FrontendEngineering #LeetCode #CodingChallenge #Day18 #Performance #SoftwareEngineering #CleanCode
To view or add a comment, sign in
-
-
✨ Day-18: Practicing JavaScript Functions ✨ Today I explored different types of functions in JavaScript to strengthen my fundamentals: Greeting Function → Prints personalized messages. Sum Function → Adds two numbers and returns the result. Square Function → Calculates the square of a number. Average Function → Finds the average of an array of numbers. Vowel Finder → Detects vowels in a given word. Temperature Converter → Converts between Celsius and Fahrenheit. Each function helped me practice logic building, loops, conditionals, and return values — all essential for frontend development. #Day18 #FrontendJourney #JavaScript #CodingPractice #LearnToCode #WebDevelopment #CodeNewbie #FrontendDeveloper #ProblemSolving
To view or add a comment, sign in
-
🚀 Day 17 of My Coding Journey Today I learned about the useRef() hook in React and also got introduced to the register concept in forms. These concepts helped me understand how React can directly interact with DOM elements and manage form inputs more efficiently. 📚 What I learned today: • Using useRef() to access and manipulate DOM elements • Understanding how refs persist values without causing re-renders • Basics of the register approach in forms • Improving form handling with better structure and performance 💡 One key takeaway: Unlike state, useRef() does not trigger re-renders, which makes it very useful for handling focus, inputs, and performance optimizations. Step by step, getting deeper into React and understanding how things work behind the scenes. ⚛️💻 #Day17 #ReactJS #useRef #FrontendDevelopment #JavaScript #WebDevelopment #LearningInPublic
To view or add a comment, sign in
-
-
JavaScript vs. TypeScript: The 'Cocomelon' Edition! Ever feel like your JavaScript code is a bit... chaotic? Like a toddler running around with no shoes? That’s where TypeScript comes in! Think of JavaScript as the fun, flexible playground where you can build anything quickly. It’s dynamic, it’s fast, but sometimes things get messy. TypeScript is like adding a 'Safety Helmet' and 'Rules' to that playground. It’s a superset of JavaScript that adds Static Typing. Why make the switch? Catch Bugs Early: Find errors while you type, not when the app crashes. Better Tooling: Enjoy super-powered autocompletion in VS Code. Scalability: It makes large projects much easier for teams to manage. Is your team Team JS or Team TS? Let's discuss below! #JavaScript #TypeScript #WebDevelopment #CodingLife #SoftwareEngineering #TechSimplified #Frontend #Programming
To view or add a comment, sign in
-
-
🚀 JavaScript vs TypeScript: Quick Guide for New Devs! 🚀 Confused on which to learn first? Let's simplify—no fluff! JavaScript 💨 • Super flexible, no type rules • Quick to code & prototype • Errors pop up when running • Ideal for beginners + small apps TypeScript 🛡️ • Adds types for extra safety • Spots bugs BEFORE launch • Scales perfectly for teams/big projects • Like JS but smarter! Real Diff? JS = Speedy Start | TS = Long-Term Wins Your Pick? Newbie? JS first! 📱 Pro apps? Add TS later (it's JS + types!) Master JS → Level up to TS = Unbeatable dev! 🔥 Who's your team? JS or TS? Comment below! 👇 #JavaScript #TypeScript #WebDevelopment #Frontend #CodingTips #LearnToCode #Programming #DevJourney #SoftwareDeveloper #TechTips #ReactJS #WebDev #BeginnerCoder #JavaScriptDeveloper
To view or add a comment, sign in
-
-
I just learned something small in TypeScript today… but it completely changed how I think about handling user state in React Instead of guessing if a user exists or not, I used a proper type: • AuthUser | null That one line made everything safer and cleaner. • No more “undefined errors” flying around. • No more messy checks. • Just clear, predictable state. I built a simple login/logout flow where: • The user is either an object (logged in) • Or null (logged out) And with optional chaining (user?.name), my UI stays smooth without breaking. It may look basic… but this is how solid frontend systems are built one correct type at a time. TypeScript is slowly turning my “it works” code into “it’s reliable” code If you’re learning React + TypeScript, don’t skip this pattern. It’s a game changer. I’m currently deep in my TypeScript journey, sharing what I learn as I grow. Let’s connect 🤝 #typescript #reactjs #frontenddeveloper #webdevelopment #codingjourney #javascript #techinpublic #buildinpublic #devcommunity
To view or add a comment, sign in
-
-
Most developers jump straight into React… But the real game-changer? 👉 Mastering JavaScript first. React is just a layer, the real power comes from understanding closures, async behavior, event loop, and how the browser actually runs your code. When you deeply understand JavaScript: • Debugging becomes easier • Performance thinking improves • Frameworks feel replaceable, not overwhelming I used to focus on “how to build in React” Now I focus on “how JavaScript works underneath” And suddenly… everything clicks. Frameworks will change. Concepts won’t. #JavaScript #ReactJS #WebDevelopment #FrontendDeveloper #CodingJourney #LearnToCode #DeveloperMindset
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development