📘 Day 175 of #200DaysOfCode Today, I explored how to count the number of properties in a JavaScript object — a small but meaningful step toward understanding how objects truly work under the hood. 🧠 Key Concepts Practiced • Working with objects • Looping through keys using for...in • Using hasOwnProperty() to avoid inherited keys • Returning calculated output 🌍 Real-World Uses ✅ Validating form inputs ✅ Checking JSON response structures ✅ Data integrity checks ✅ Object analysis in APIs 🔎 Learning takeaway: Even the simplest operations help you develop a deeper understanding of core JavaScript behavior. Mastering the fundamentals builds confidence for tackling complex problems later. #JavaScript #Day175 #175DaysOfCode #ProblemSolving #CodingChallenge #WebDevelopment #LogicBuilding #BackToBasics #LearnInPublic #DeveloperJourney #CodingMindset
Counting object properties in JavaScript: A fundamental skill
More Relevant Posts
-
🧩 Ever wondered how JavaScript knows which function to run next? Behind the scenes, there’s a powerful data structure managing it all — ✨ The Call Stack! ✨ Think of it as a stack of plates 🍽️ — the last plate added is the first to be removed. Call Stack = Function Manager 🧠 Works on LIFO Single-threaded execution Basis for async JS magic #JavaScript #WebDevelopment #FrontendDevelopment #WebDev #Coding #JavaScriptConcepts #LearnJavaScript #CodeNewbie #DevCommunity #100DaysOfCode #TechEducation
To view or add a comment, sign in
-
🚀 Day 82 of #100DaysOfCode Today I learned to create an object literal in JavaScript to model a Thread/Twitter post. By organizing properties like username, content, likes, reposts, and tags into a single object, it becomes easy to manage and update social media data! Example: const post = { username: "coder123", content: "Excited to share my #100DaysOfCode progress!", likes: 120, reposts: 15, tags: ["coding", "javascript", "learning"] }; Object literals make real-world data handling simple and powerful in code. #JavaScript #ObjectLiterals #SocialMedia #Coding #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 7 of My 30 Days of JavaScript Journey ✅ Challenge: Array Reduce Transformation (LeetCode #2626) Write a function reduce(nums, fn, init) that processes each element of the array using the given reducer function fn, starting from an initial value init. This function should accumulate results sequentially and return the final value — implemented without using the built-in Array.reduce() method. 💻 Language Used: JavaScript ❓ Problem Link: https://lnkd.in/gxsp26cz 💡 Solution: https://lnkd.in/giZj_hYw 🧠 Concept Highlighted: This problem deepened my understanding of accumulator functions, data aggregation, and sequential computation in JavaScript. It helped me explore how the powerful reduce() method works behind the scenes — a key tool for transforming and summarizing data efficiently. #Day7 #JavaScript #LeetCode #30DaysOfCode #CodingChallenge #WebDevelopment #FrontendDevelopment #LearningEveryday #ProblemSolving #FunctionalProgramming
To view or add a comment, sign in
-
🧠 Day 20 of #100DaysOfDSA Today I practiced two classic problems from LeetCode — FizzBuzz and Reverse String. 📘 What I learned: These might look like simple problems, but they help sharpen logic building, loops, and condition handling — essential building blocks for bigger challenges. 💻 Problems Solved: 1️⃣ FizzBuzz – A fun way to practice modular arithmetic and condition prioritization. 2️⃣ Reverse String – Implemented using the two-pointer approach for an in-place reversal. 💡 Key Takeaways: FizzBuzz reinforces thinking through branching logic. The two-pointer method is efficient for array and string manipulation. Small problems like these build the foundation for complex algorithms. 🔗 Check out my implementations here: https://lnkd.in/gxs9yaen #100DaysOfCode #DSA #LeetCode #JavaScript #CodingJourney #ProblemSolving #LearningInPublic
To view or add a comment, sign in
-
Don’t underestimate the power of fundamentals, they’re the building blocks of everything we create. Today, I decided to slow down a bit. Instead of diving into frameworks or complex architectures, I revisited something simple: Objects and Classes in JavaScript. It’s easy to get caught up chasing new tools, libraries, and technologies. But every now and then, going back to the basics reminds you how much strength lies in understanding why things work the way they do. When you truly master the fundamentals, you can build anything faster, cleaner, and with more confidence. What’s one fundamental concept you’ve recently revisited that made you appreciate how far you’ve come? #JavaScript #WebDevelopment #CodingFundamentals #SoftwareDevelopment #LearningNeverStops
To view or add a comment, sign in
-
-
Tired of repetitive object.property syntax? ✨ Let's talk destructuring! Tip #009: Use object destructuring to extract multiple properties from objects in a single, clean statement. Perfect for function parameters, API responses, and config objects. Benefits: ✅ Cleaner, more readable code ✅ Less repetition ✅ Better parameter naming ✅ Modern JavaScript standard What's your favorite use case for destructuring? Share your examples below! 👇 #JavaScript #CleanCode #WebDevelopment #ProgrammingTips #SoftwareEngineering #Coding #ModernJavaScript #100Devs #Developer
To view or add a comment, sign in
-
-
🚀 Day 85/90 – #90DaysOfJavaScript Topic covered: Today I revised how values convert into strings in JavaScript using the toString() method. ✅ toString() converts values to string ✅ Works with numbers, booleans, arrays, objects ✅ Radix support: convert numbers to Binary, Octal, Hex ✅ Arrays → comma-separated string ✅ Objects → default "[object Object]" ✅ JSON.stringify() for readable objects ✅ Custom toString() method inside objects 🧠 Key insight: toString() cannot be used on null or undefined — throws error. 🛠️ Access my GitHub repo for all code and explanations: 🔗 https://lnkd.in/dWUFJZax Let’s learn together! Follow my journey to #MasterJavaScript in 90 days! 🔁 Like, 💬 comment, and 🔗 share if you're learning too. #JavaScript #WebDevelopment #CodingChallenge #Frontend #JavaScriptNotes #MasteringJavaScript #GitHub #LearnInPublic
To view or add a comment, sign in
-
🧩 Day 4 – Mastering Objects & Arrays Day 4 was all about Objects and Arrays — the backbone of JavaScript data handling. I learned how to create, modify, and loop through them efficiently. Also explored methods like map(), filter(), and reduce() — game changers for clean, readable code! 💡 Realized how these methods simplify complex logic into elegant one-liners. 💬 Which one do you use the most — map, filter, or reduce? #JavaScript #WebDevelopment #CodingChallenge #FrontendLearning #gfg #geeksforgeeks #React
To view or add a comment, sign in
-
Today I learned about the 𝐝𝐢𝐟𝐟𝐞𝐫𝐞𝐧𝐭 𝐬𝐭𝐚𝐠𝐞𝐬 𝐨𝐟 𝐞𝐫𝐫𝐨𝐫𝐬 𝐢𝐧 𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭, and it really helped me understand debugging better. Here’s a quick summary of what I covered: 𝐒𝐲𝐧𝐭𝐚𝐱 𝐄𝐫𝐫𝐨𝐫𝐬: These occur when the structure of the code is wrong. JavaScript won’t run until they’re fixed. 𝐑𝐮𝐧𝐭𝐢𝐦𝐞 𝐄𝐫𝐫𝐨𝐫𝐬: The code is syntactically correct but fails during execution. Often caused by calling something that doesn’t exist or using undefined values. 𝐋𝐨𝐠𝐢𝐜𝐚𝐥 𝐄𝐫𝐫𝐨𝐫𝐬: The code runs fine but gives the wrong output. These are harder to detect because the program doesn’t crash. 𝐓𝐲𝐩𝐞 𝐄𝐫𝐫𝐨𝐫𝐬: Happen when an operation is performed on the wrong data type. 𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞 𝐄𝐫𝐫𝐨𝐫𝐬: Occur when we try to access variables or functions that are not defined. Learning the differences between these errors made me realize how important it is to understand not just what went wrong, but why it went wrong. Small steps every day 🚀 #javascript #learning #webdevelopment #codingjourney#10000coders#10kcoders
To view or add a comment, sign in
-
🟦 Day 176 of #200DaysOfCode Today’s focus was on merging objects in JavaScript using Object.assign() — a powerful and clean way to combine data structures efficiently. 🔧 What I built: A function that takes two objects (provided through user input), merges them into a single object, and returns the combined result. 🧠 Key Concepts Practiced • Dynamic object creation • Accepting user input • Merging objects with Object.assign() • Understanding how property overwrite works 🚀 Why merging objects matters? Merging or shallow-copying objects is extremely useful in real-world applications: ✅ Combining configuration settings ✅ Merging user profiles & updates ✅ Working with API responses ✅ State management (React/Redux workflow) 💡 Learning takeaway: Small utilities like Object.assign() simplify development. But more importantly — they deepen our understanding of how JavaScript handles references, immutability, and merging behavior. Master the basics. Build confidently. #JavaScript #176DaysOfCode #WebDevelopment #CodingChallenge #LearnInPublic #ProblemSolving #DeveloperMindset #LogicBuilding #ObjectOrientedProgramming
To view or add a comment, sign in
-
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