Practicing Object-Oriented Programming in JavaScript. Implemented a Product constructor, a Cart class using array methods (reduce, filter, map), and a DiscountCart subclass with inheritance. Focused on clean structure and method organization. #JavaScript #OOP #WebDevelopment #CodingPractice #LearningInPublic #DeveloperJourney
Marcos Cattaneo’s Post
More Relevant Posts
-
Day 98 of my #100DaysOfCodeChallenge Today I explored Object-Oriented Programming in JavaScript using classes. Here’s what I worked on: Built a Product class with methods to display details and calculate total price Learned how constructors initialize object properties Implemented static properties and methods using a utility class Created a User class to track the number of users created This helped me understand the difference between instance-level and class-level behavior, and how to structure code more effectively. It’s a shift from just writing functions to designing systems. #JavaScript #OOP #WebDevelopment #SoftwareEngineering
To view or add a comment, sign in
-
Sharing beginner-friendly notes on Object-Oriented Programming (OOP) in JavaScript 🧠 Covered core concepts like Classes, Constructors, Inheritance, Encapsulation, Polymorphism, Getters/Setters, Static methods, and Private fields (#) with clear examples. Also explained how super, instanceof, and prototypes work behind the scenes. A practical guide to understanding how OOP works in modern JavaScript. Feedback and suggestions are welcome! #JavaScript #OOP #Coding #Learning #Programming
To view or add a comment, sign in
-
30 Days JavaScript Challenge : Day 24 ✅ Today’s problem was about sorting an array using a custom function. Instead of directly sorting values, we use a function fn to decide the order — basically telling JavaScript how to compare elements. At first it feels simple, but it actually shows how powerful sorting can be when you control the logic: Sorting objects based on a property Sorting nested arrays Custom ranking based on conditions It’s one of those concepts that looks basic but is used everywhere in real projects. Slowly getting more clarity on how to write flexible and reusable logic in JavaScript. #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic
To view or add a comment, sign in
-
-
🚀 Level Up Your JavaScript Skills with 10 Powerful One‑Liners! Whether you're optimizing your workflow, cleaning up code, or just love writing elegant snippets, these JavaScript one‑liners can save you time and boost your productivity. From array manipulation to generating random numbers — a few lines can do a lot more than you think! ✨ 💡 Perfect for beginners exploring modern JavaScript and pros who enjoy writing clean, efficient code. #JavaScript #WebDevelopment #FrontendDevelopment #Coding #Programming
To view or add a comment, sign in
-
-
📚 JavaScript: Array vs Object 💡 Many beginners get confused between Array and Object in JavaScript. But the difference is actually very simple 👇 ✅ Array • Used to store a list of items • Values are ordered • Access items by index like 0, 1, 2 Example: ["Apple", "Mango", "Banana"] ✅ Object • Used to store key-value pairs • Best for structured data • Access values by key Example: { name: "John", age: 25 } 👉 Use Array when you need a list. 👉 Use Object when you need data with labels. Understanding this basic concept makes JavaScript much easier to learn 🚀 #JavaScript #WebDevelopment #Programming #FrontendDevelopment #Coding #ReactJS #LearnJavaScript #Developer #TechCommunity #100DaysOfCode
To view or add a comment, sign in
-
-
30 Days JavaScript Challenge: Day 25 ✅ Today’s problem was about merging two arrays of objects based on a common key (id). Sounds simple at first, but it had a few interesting parts: Handling unique ids Merging objects when ids match Making sure values from the second array override the first Keeping everything sorted It’s actually very close to real-world scenarios like combining data from two APIs or updating existing records with new data. Problems like this make you think more about data handling and structure, not just loops and conditions. Day by day, things are starting to connect better. 🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic #JavaScriptMastery
To view or add a comment, sign in
-
-
I recently shared a short blog where I explain Object-Oriented Programming (OOP) in JavaScript along with its four core concepts — Encapsulation, Inheritance, Polymorphism, and Abstraction — using simple and beginner-friendly examples 💡 If you're learning JavaScript or just brushing up your OOP fundamentals, this might be useful for you 🚀 👉 Read the blog here: https://lnkd.in/g-B4g5gk Hitesh Choudhary | Piyush Garg | Suraj Kumar Jha | Chai Code | Akash Kadlag ☕ #JavaScript #OOP #WebDevelopment #Programming #LearnInPublic #Blog #Cohort2026
To view or add a comment, sign in
-
-
Understanding JavaScript Variables Variables are the foundation of programming — they store data that your application can use and modify. 📌 Types of Variables: 🔹 Local Variables Declared inside a function Accessible only within that function 🔹 Global Variables Declared outside functions Accessible from anywhere in the script 💡 Key Insight: Use local variables for better control and avoid unnecessary global variables to prevent conflicts. 👉 How do you manage variable scope in your projects? #JavaScript #WebDevelopment #Frontend #Coding #Developers #Learning #Programming
To view or add a comment, sign in
-
-
Came across a classic JavaScript interview question today! 💡 👉 Find the first repeating character in a string. 🔹 The trick is simple track characters as you iterate and return the first one you’ve already seen. 🧠 Key Insight: “Seen before? Return immediately.” — no need for nested loops or sorting. This approach gives an efficient O(n) solution 🚀 #JavaScript #CodingInterview #DSA #WebDevelopment #Programming #TechSkills #CareerGrowth
To view or add a comment, sign in
-
-
Why does this print 4 4 4 4 in JavaScript? 🤯 A small setTimeout() + var question that teaches a big concept: closures, scope, and async behavior. When you understand why it happens, JavaScript starts making much more sense. #JavaScript #WebDevelopment #Programming #Coding #FrontendDevelopment #SoftwareEngineering #Developer #TechCommunity #LearnToCode #AsyncJavaScript #Closures #SetTimeout #100DaysOfCode #CodingTips #JavaScriptDeveloper
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