🧠 JavaScript Concepts I Explored Today Today was a solid learning session — I spent time understanding how functions actually shape the logic in JavaScript. Here’s what I went through 👇 Functions and how they make code reusable First-class and higher-order functions (functions inside functions 🔁) Closures — the part where JS “remembers” variables even after execution IIFE — functions that run instantly (good for isolated scopes) Arrays — map, filter, reduce, forEach Objects — destructuring, looping, optional chaining These concepts connected so many dots for me. The more I write JavaScript, the more I realize how expressive it can be when you actually understand the “why” behind the syntax. #JavaScript #CodingJourney #WebDevelopment #Frontend #MERNStack
Mastering JavaScript: Functions, Closures, and More
More Relevant Posts
-
💡 Understanding Object Methods in JavaScript Working with objects is fundamental in JS. Here's a quick overview of some powerful methods: Object.keys(obj) → Returns all keys of the object. Object.values(obj) → Returns all values of the object. Object.entries(obj) → Returns key-value pairs as arrays. obj.hasOwnProperty("property") → Checks if the object has a specific property. Object.assign({}, obj, { newProperty: "newValue" }) → Creates a new object by merging existing ones. 👉 View the full example on GitHub: https://lnkd.in/dDN-vDkD #JavaScript #FullStack #100xDevs #WebDevelopment #Coding #JSConcepts #LearnJavaScript
To view or add a comment, sign in
-
Day 5 of #30DaysOfJavaScript: Creating My Own Filter Function from Scratch! 🎯 Today, I tackled a great exercise that challenged me to build a custom filter function without using JavaScript’s built-in .filter() method. This involved iterating over an array and using a callback function to decide which elements to keep based on truthy values. Here’s a peek at the solution I wrote: Key takeaways from this challenge: Deepened my understanding of higher-order functions and callback usage. Learned how to evaluate truthy and false values in JavaScript more effectively. Gained appreciation for the power and convenience of built-in array methods by implementing one manually. This hands-on approach is helping me grasp fundamental JavaScript concepts in detail while preparing for real-world coding challenges. Excited to keep growing and solving more problems along the way! Let’s connect and share knowledge. #JavaScript #CodingChallenge #WebDevelopment #LeetCode #ArrayMethods #LearningByBuilding #DeveloperJourney
To view or add a comment, sign in
-
-
The JavaScript Event Loop — The Hidden Multitasking Hero If JavaScript is single-threaded, how does it look like it’s doing so many things at once? 🤔 Meet the Event Loop — the patient snake 🐍 that makes everything flow smoothly. 🧩 In simple words: JS runs one thing at a time (main thread). When async tasks finish, the Event Loop decides when to bring them back into action — like a patient teacher calling students one by one from different queues 😄 ✨ Takeaway: --> Promises (microtasks) always run before setTimeout (macrotasks). --> JS isn’t truly “multi-threaded” — it’s just a great illusionist. 🎩 Next up → 🧠 “this” Keyword — The Most Confused Owl in JavaScript 🦉 #JavaScript #EventLoop #AsyncJS #WebDevelopment #FrontendDevelopment #CodingCommunity #100DaysOfCode #LearnToCode #MERNStack #ProgrammingHumor
To view or add a comment, sign in
-
-
🚀 Starting My JavaScript Revision Journey! Body: Yesterday, I went back to the basics of JavaScript to strengthen my foundation. Here’s what I revised: 🟡 Variables — var, let, and const and when to use them 🟡 Scope — Global variables (accessible everywhere) — Local variables (accessible within a function/block) 🟡 Data Types — Primitive: string, number, boolean, null, undefined, symbol, bigint — Non-Primitive: objects, arrays, functions It’s amazing how revisiting fundamentals clears a lot of confusion! What JavaScript concept took you time to understand when starting out? #JavaScript #BackendDevelopment #LearningJourney #Coding
To view or add a comment, sign in
-
💡 JavaScript Array Methods — Master the Core of JS! ⚡ Arrays are the backbone of JavaScript — and knowing their methods can make your code cleaner & faster! 💻 📘 Key Methods to Learn: map() | filter() | reduce() forEach() | find() | some() | every() push() | pop() | shift() | unshift() slice() | splice() | concat() | join() 🚀 Master these to handle data like a pro and crack any frontend interview! 👉 Follow Pluto Academy for more JS guides, cheat sheets & interview prep content. #JavaScript #WebDevelopment #Frontend #CodingInterview #Arrays #PlutoAcademy
To view or add a comment, sign in
-
🚀 JavaScript Practice: Prime Numbers from 1 to 100 Here's a simple yet classic logic-building problem — finding all prime numbers between 1 and 100 using JavaScript. Key learnings from this program: ✅ Nested loops usage ✅ Logical thinking with condition checks ✅ Introduction to algorithmic problem-solving 💡 Tech Used: JavaScript 👨💻 Concept: Prime Number Detection #JavaScript #Coding #100DaysOfCode #SoftwareEngineer #LearningInPublic #LogicBuilding #FrontendDevelopment
To view or add a comment, sign in
-
-
🎯 Day 1 — Deep Dive into JavaScript Fundamentals Today I started my journey to strengthen the core of JavaScript, and it’s amazing how much depth lies behind the basics! 🚀 Here’s what I learned today: 🧩 Primitive vs Reference Types 🧠 typeof Operator Behavior ⚖️ Difference Between null and undefined 🪄 var vs let vs const and Variable Hoisting ⛔ Temporal Dead Zone (TDZ) 📦 Block Scope vs Function Scope 🔄 Implicit vs Explicit Type Conversion ✅ Truthy and Falsy Values 🔍 Comparison Operators & Type Coercion 🔧 Object to Primitive Conversion (valueOf, toString) 👇 Understanding this in Different Contexts: Global Context Object Methods Constructor Functions Arrow Functions Event Handlers Explicit & Implicit Bindings new Keyword Every topic connected like a puzzle — learning how JavaScript really works behind the scenes makes it even more exciting to code. 💻 #JavaScript #WebDevelopment #Day1 #LearningJourney #Frontend #Coding
To view or add a comment, sign in
-
🚀 Day 80 of #100DaysOfCode Today I learned about object literals in JavaScript. Object literals are a simple way to store data as key-value pairs inside curly braces. This makes it easy to organize related information and lets you access values using property names. Object literals are great for creating flexible and readable code. #JavaScript #ObjectLiterals #Learning #100DaysOfCode
To view or add a comment, sign in
-
-
Leveling Up in JavaScript Today I explored some powerful JS concepts: Destructuring – unpack values from arrays or objects easily. Spread syntax – clone or merge arrays/objects efficiently. Hoisting – JS moves declarations to the top before execution. IIFE (Immediately Invoked Function Expression) – a function that runs right after it’s defined. These small concepts build the foundation for cleaner, smarter code. What’s your favorite JavaScript concept? #JavaScript #WebDevelopment #LearningInPublic
To view or add a comment, sign in
-
If you’ve ever wondered how JavaScript handles inheritance, the answer is: Prototypes. Every JS object has a hidden link called [[Prototype]], and every function has a .prototype object. When we create objects using new, those objects automatically inherit methods from the function’s prototype. Why does this matter? ✅ Saves memory ✅ Lets multiple objects share behavior ✅ Enables powerful inheritance patterns ✅ Forms the foundation for modern class syntax 😁 Under the hood: p1 → Person.prototype → Object.prototype → null The next time someone asks you about JS inheritance, remember: 👉 It all starts with the prototype chain. #javascript #frontend #webdevelopment #learning #programmingtips
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