Day 12/100 of my #100DaysOfCode journey. Today I worked on two very practical JavaScript concepts: • Error handling using try...catch • Working with JSON data (JSON.parse() and JSON.stringify()) To practice, I simulated an API response in JSON format and wrote code to safely handle possible errors while processing the data. One thing that stood out today: In automation testing, APIs and browser interactions don’t always behave as expected. Good error handling ensures that tests fail clearly and predictably, instead of breaking silently. Understanding JSON is also essential because most APIs communicate using JSON responses. Small concepts today → better debugging and more reliable automation later. Next → JavaScript classes and object-oriented programming. #100DaysOfCode #SoftwareTesting #QAAutomation #JavaScript #LearningInPublic
Error Handling & JSON in JavaScript: Day 12 of #100DaysOfCode
More Relevant Posts
-
Many developers jump to frameworks… but ignore JavaScript fundamentals. It works — until things break. Then come the real issues: Confusion in logic. Debugging struggles. Weak problem-solving. Framework dependency. JavaScript in 2026 isn’t just syntax. It’s about mastering the core concepts. 💡 Must-Know Basics: • Variables & clean declarations • Data types & operators • Functions & logic building • Loops & arrays • DOM manipulation ⚡ Strong JavaScript basics = Strong developer foundation #JavaScript #WebDevelopment #FrontendDevelopment #CodingTips #LearnJavaScript #DeveloperLife #ProgrammingBasics #SoftwareEngineering
To view or add a comment, sign in
-
-
Today I finally understood how JavaScript actually stores data in memory — and it changed the way I look at code. Earlier, I used to just write variables and functions without thinking much about what’s happening behind the scenes. But now it makes a lot more sense: Primitive values (like numbers, strings, booleans) are stored directly in memory Reference types (like arrays and objects) are stored differently — the variable holds a reference, not the actual value That’s why things like this behave unexpectedly sometimes: Copying objects doesn’t create a real copy Changing one reference can affect another Understanding this cleared up a lot of confusion I had while debugging. Still learning, but this felt like a small breakthrough Hitesh Choudhary Piyush Garg Chai Code #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Day 5/100 — #100DaysOfCode Today was all about strengthening my JavaScript fundamentals 💻 Instead of rushing ahead, I took time to revise the core concepts that form the backbone of programming. 📚 What I revised: 🧠 Core Concepts • Variables & Declarations • Data Types & JavaScript Type System ⚡ Logic Building • Operators • Control Flow (if-else, conditions) 🔁 Iteration • Loops (for, while) ⚙️ Functions • Writing reusable and structured code 📦 Data Structures • Arrays — handling collections of data • Objects — organizing data in key-value form 💡 Key Insight: Strong fundamentals make complex problems easier to solve. 🔥 Day 5 complete. Staying consistent and building step by step. #JavaScript #WebDevelopment #CodingJourney #BuildInPublic #Consistency
To view or add a comment, sign in
-
-
🚀 Day 968 of #1000DaysOfCode ✨ Types of Loops in JavaScript (Explained Simply) Loops are one of the most fundamental concepts in JavaScript — but choosing the right one can make a big difference in your code. In today’s post, I’ve explained the different types of loops in JavaScript in a simple and practical way, so you can understand when to use each one. From `for` and `while` to `for...of` and `for...in`, each loop has its own purpose depending on how you’re working with data. Using the right loop not only makes your code cleaner but also improves readability and performance in many cases. This is one of those basics that every developer uses daily — but mastering it helps you write much better code. If you’re working with arrays, objects, or complex data structures, this is something you should be confident about. 👇 Which loop do you use the most in your day-to-day coding? #Day968 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #CodingCommunity #JSBasics
To view or add a comment, sign in
-
Day 66 | JavaScript Loops & Array Iteration Today I practiced JavaScript loops and working with arrays of objects🧑🏻💻 - What I Worked On: •Iterated through array of objects using for loop •Printed all elements and accessed object properties like loc •Used loop with step increment (i += 2) to print alternate values •Practiced reverse counting using for and while loops •Used forEach() for cleaner array iteration 💡 Key Learning: •Arrays of objects are very common in real-world applications •Loop conditions must be handled carefully (i < length vs <= length) •forEach() is simple and readable for iteration •Multiple ways to loop → choose based on requirement Takeaway: Mastering loops is key to handling data efficiently in JavaScript Consistency is improving logic step by step #Day66 #JavaScript #Loops #Arraylteration #ProblemSolving #CodingJourney #10000Coders #WebDevelopment #SravanKumarSir
To view or add a comment, sign in
-
🚀 Day 37 - Revision Day 🔁 Today was all about revisiting previously learned JavaScript concepts and strengthening my foundation. No new topics......just focused revision to deepen understanding. 📚 What I revised: • JavaScript fundamentals (variables, data types) • Functions & scope • Arrays and objects • DOM basics • Problem-solving exercises ✅ Key Takeaways: ✔ Revision makes concepts stick better ✔ Small gaps become visible when you revisit ✔ Strong fundamentals = better coding confidence Slowing down today to move faster tomorrow...!💡 #LearnInPublic #JavaScript #WebDevelopment #CodingJourney #Consistency
To view or add a comment, sign in
-
🔥 JavaScript Devs — Mutation vs Immutability (The Silent Bug Creator) Hey devs 👋 This one caused me real production bugs… 👉 Mutation in JavaScript. Example: const obj = { value: 1 }; const newObj = obj; newObj.value = 2; 💥 Now BOTH objects changed. 👉 Problem: Shared references → unexpected side effects 💡 What I changed: ✔ Use spread operator ✔ Avoid direct mutation ✔ Treat state as immutable Example: const newObj = { ...obj, value: 2 }; ⚡ Lesson: “Mutation is easy… debugging it is not.” 👉 Senior mindset: Predictable data = predictable code Have you faced mutation bugs before? #javascript #immutability #programmingtips #webdevelopment #frontenddeveloper #backenddeveloper #cleancode #softwareengineering #codingbestpractices #jsdeepdive #learn
To view or add a comment, sign in
-
-
LeetCode Day 10 : Problem 380 (Insert Delete GetRandom O(1)) Just solved my tenth LeetCode problem. It was "Insert Delete GetRandom O(1)", sounds like a basic Set problem, right? But here's what I actually learned: My first attempt used only a Map. Insert and remove worked fine, Map gives you O(1) for both. So I thought I was done. Then came getRandom(). I wrote Array.from(this.map.keys()) to pick a random element. It worked. Tests passed locally. But it was O(n), rebuilding an entire array from the map on every single call. The problem explicitly requires O(1) for all three operations. My solution was silently failing the constraint. I also had a crash hiding in insert. I wrote this.map.insert(val), but JavaScript's Map has no insert() method. The correct method is .set(). One wrong method name and the whole class throws a TypeError at runtime. The real fix wasn't patching getRandom(). It was rethinking the data structure entirely. The trick: maintain both a Map and an Array together. The Array holds the actual values so getRandom() is just a random index lookup, pure O(1). The Map stores each value's index in the array so insert and remove stay O(1) too. The hardest part? Remove. You can't just delete from the middle of an array in O(1). The solution: swap the target element with the last element, pop the end, then update the swapped element's index in the Map. No shifting, no gaps. Two bugs in one problem. One crashed the code, one passed tests but broke the core constraint. The real lesson? Passing test cases is not the same as meeting complexity requirements. Always verify your Big O, not just your output. #DSA #LeetCode #JavaScript #CodingJourney #Programming
To view or add a comment, sign in
-
-
Worth reading today. Maps and Sets in JavaScript: A Beginner-Friendly Guide JavaScript provides many ways to store and manage data. While Arrays and Objects are widely used, Maps and Sets are two powerful yet often overlooked data structures. Full blog → https://lnkd.in/dwk3yBJn #TechEducation #LearningJourney #Developers #Coding
To view or add a comment, sign in
-
🚀 Master JavaScript Faster with This Cheat Sheet! Whether you're a beginner or brushing up your skills, this JavaScript Cheat Sheet has everything you need in one place: ✔️ Variables & Data Types ✔️ Functions & Arrow Functions ✔️ Arrays & Objects ✔️ DOM Manipulation ✔️ ES6+ Features ✔️ Events & Async JavaScript #JavaScript #WebDevelopment #FrontendDevelopment #Coding #Programming #LearnToCode #Developer #100DaysOfCode #JS #SoftwareDevelopment #CodingLife #CodeNewbie #WebDev #TechSkills #ProgrammingLife #Developers #LearnJavaScript #CodingCommunity #FullStackDeveloper #DevLife
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
Something I realized today: Handling errors properly makes debugging much easier. Instead of the program crashing unexpectedly, you can understand exactly what went wrong.