Promises in real life are often broken… 👀 But in JavaScript, they’re surprisingly reliable 😄 Think of a Promise like ordering food online. You place an order, but the result isn’t immediate. Until something happens, it lives in one of three states: 🍽️ Fulfilled → Order delivered ❌ Rejected → Order cancelled ⏳ Pending → Still in progress That’s literally the Promise lifecycle. #javascript #coding #reactjs
JavaScript Promises: Fulfilled, Rejected, Pending
More Relevant Posts
-
Every senior developer I've met secretly hates JavaScript but keeps using it because there's no real alternative for the browser. It's not a choice. It's a hostage situation. 💀 TypeScript is just JavaScript with a blindfold on 😂 it doesn't fix the chaos underneath. Prove me wrong 👇 #JavaScript #TypeScript #SoftwareEngineering #HotTake
To view or add a comment, sign in
-
"Hot take: Learning React before mastering JavaScript feels like a superpower until you hit a wall 🧱 🧱 React does such a great job of streamlining our workflow that it’s easy to forget how much 'magic' it’s doing under the hood. If you’re struggling with JS fundamentals now, don't sweat it—you're just finally meeting the engine that powers your favorite library!" Working with React is so easy if you follow JS way 👍🏻👍🏻 ❗❗ React looks very hard when you aren't able to tackle most of the problem which requires js fundamental. #React #Javascript #FrontendDevelopment #WebDevelopment
To view or add a comment, sign in
-
-
📚 Today’s Learning – React Strict Mode 1.It runs additional checks and warnings for unsafe lifecycle methods, unexpected side effects, and deprecated APIs. 2.One interesting behavior is that components may render twice in development to help detect side effects. 💡 Key takeaway: Strict Mode doesn’t affect production builds, but it helps catch bugs early during development and encourages writing safer, cleaner React code. #ReactJS #FrontendDevelopment #WebDevelopment #JavaScript #CodingJourney #LearnInPublic
To view or add a comment, sign in
-
-
🚀 30 Days — 30 React Mistakes Beginners Make 📅 Day 4/30 ❌ Mistake: Making Input Controlled Without onChange I wrote this 👇 <input value={name} /> Input stopped typing 😐 💡 Why? When you pass value, React controls the input. But without onChange, it becomes read-only. React says: “If I control it, you must update it.” ✅ Correct Way <input value={name} onChange={(e) => setName(e.target.value)} /> 🎯 Lesson If you use value, always handle onChange. Controlled component = state-driven input. #ReactJS #JavaScript #FrontendDev #WebDevelopment #CodingProblems #ReactHooks #DevTips #ProgrammingLife #TechLearning #UIEngineering
To view or add a comment, sign in
-
-
One thing I’ve been doing more often while building features is testing small pieces of logic before moving forward. Not full testing frameworks — just simple checks while the code is running. Clicking the same button multiple times. Trying unexpected inputs. Refreshing the page in the middle of a request. Sometimes that’s where small issues appear. A state that doesn’t reset. A value that becomes undefined. A component that behaves differently after a refresh. Catching those small things early makes the feature feel much more solid. It’s a quiet part of development, but it makes a big difference once everything starts coming together. Still building. Still learning from the small details inside the code. #FrontendDevelopment #ReactJS #JavaScript #WebDevelopment #SoftwareDevelopment
To view or add a comment, sign in
-
Day 75 / 365 👨💻 Continued learning React. 📘 Learned why React.createElement can be inconvenient ✨ Introduction to JSX ⚙️ Understood the role of Babel 🧩 How JSX works under the hood 🧠 Creating basic React components 🔢 Using JavaScript expressions inside JSX #365DaysOfCode #React #JavaScript #Frontend
To view or add a comment, sign in
-
null vs undefined in JavaScript — Same but Different One of the most confusing topics in JavaScript is the difference between null and undefined. Here’s the simple breakdown: • undefined → A variable is declared but not assigned. • null → An intentional empty value assigned by the developer. Key difference: null == undefined // true null === undefined // false Best Practice: ✔ Use null when you intentionally want no value ✔ Let undefined be the default state ✔ Prefer strict equality (===) Understanding this small difference can prevent many hidden bugs in real-world projects. #JavaScript #WebDevelopment #Coding #Frontend #Developers
To view or add a comment, sign in
-
-
Javascript Quickies !! #js_quicky_2 Ever been confused about what `this` refers to in Javascript? 🤔 Here’s a short summary with a simple chart to make it clearer. #javascript #jsimple #frontend #webdevelopment #softwareengineering #coding #frontenddevelopment #thiskeyword
To view or add a comment, sign in
-
-
🚀 30 Days — 30 Coding Mistakes Beginners Make Day 10/30 I increased state twice… but it only updated once 😐 setCount(count + 1) setCount(count + 1) I expected +2 I got +1 Because React batches state updates. Both lines used the same OLD value of `count`. Fix 👇 setCount(prev => prev + 1) Functional updates always receive the latest state. This is very important in: counters, carts, likes, and real-time UI. Day 11 tomorrow 👀 #30DaysOfCode #reactjs #javascript #frontend #webdevelopment #codeinuse
To view or add a comment, sign in
-
-
One thing I’ve learned working with React: 👉 Good component structure saves hours of future debugging. Simple code = scalable product. #React #JavaScript #FrontendEngineering
To view or add a comment, sign in
More from this author
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