🚀 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
Learned to create an object literal in JavaScript for social media data
More Relevant Posts
-
📘 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
To view or add a comment, sign in
-
-
🧩 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 319: Learnt JavaScript objects and arrays: property access, shallow vs deep copying with structuredClone(), best iteration techniques using for...of, avoiding pitfalls of for...in, destructuring with defaults, and mutating vs non-mutating array methods. Key skills for writing safe, efficient, and maintainable JS code! #dailylearning Masai #Masaiverse
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 28 - Cohort 2.0! Sheryians Coding School Understanding JavaScript Data Types. This session was all about exploring the core data types in JavaScript. Like float, number, string, boolean, null, array, object, symbol, undefined, NaN, Infinity and understanding the difference between primitive and reference types. These concepts form the foundation of every JavaScript program, helping us store, compare, and manage data effectively. Harsh Vandana Sharma Bhaiya explained everything so well Every day, the journey into JavaScript gets more exciting and insightful. #SheryiansCodingSchool #JavaScript #WebDevelopment #LearningJourney #Frontend #Coding
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
-
Building a Basic Calculator in JavaScript 🔹 Ever wondered how to evaluate a math expression like '1 + (4 + 5 + 2) - 3' in JavaScript without using eval()? Here's a clean way to do it using stacks. Key Concepts: Stack for previous results and signs: Keeps track of nested parentheses. Sign management: Helps handle + and - correctly. Iterative parsing: Converts string digits into numbers. Avoids the dangers of eval(). Can handle nested parentheses. Shows how stack-based algorithms can solve real-world problems elegantly.
To view or add a comment, sign in
-
-
🚀 Master JavaScript Arrays — From Basics to Advanced! Arrays are the backbone of data manipulation in JavaScript — from handling lists of items to building complex data structures. 📊 This guide covers everything you need to know — ✅ Creating, accessing, and modifying arrays ✅ Copying & cloning techniques (mutable vs. immutable) ✅ Modern methods like toReversed(), toSorted(), toSpliced(), and with() ✅ Deep dive into static & iterator methods (map, filter, reduce, find, flatMap, and more) ✅ Practical exercises and real-world challenges Whether you’re a beginner brushing up your fundamentals or an intermediate dev polishing your skills, this post is packed with examples and clear explanations to make Arrays second nature. 💪 📄 Download the full PDF below and start mastering one of the most powerful parts of JavaScript today. #JavaScript #FrontendDevelopment #WebDevelopment #Coding #Learning #Arrays #JSDeveloper
To view or add a comment, sign in
-
🚀 Master JavaScript Arrays — From Basics to Advanced! Arrays are the backbone of data manipulation in JavaScript — from handling lists of items to building complex data structures. 📊 This guide covers everything you need to know — ✅ Creating, accessing, and modifying arrays ✅ Copying & cloning techniques (mutable vs. immutable) ✅ Modern methods like toReversed(), toSorted(), toSpliced(), and with() ✅ Deep dive into static & iterator methods (map, filter, reduce, find, flatMap, and more) ✅ Practical exercises and real-world challenges Whether you’re a beginner brushing up your fundamentals or an intermediate dev polishing your skills, this post is packed with examples and clear explanations to make Arrays second nature. 💪 📄 Download the full PDF below and start mastering one of the most powerful parts of JavaScript today. #JavaScript #FrontendDevelopment #WebDevelopment #Coding #Learning #Arrays #JSDeveloper
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
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
Love how you’re connecting real-world concepts with code! Object literals really make data organization so much cleaner 👏🔥