Practiced the difference between normal functions and arrow functions in JavaScript. => In a normal function, this refers to the object calling it => In an arrow function, this does not bind to the object Understanding this behavior helps avoid many silent bugs in JavaScript. #JavaScript #JavaScriptBasics #ArrowFunctions #ThisKeyword #WebDevelopment #FrontendDevelopment #LearningInPublic #CodingJourney #100DaysOfCode #BuildInPublic #DeveloperLife #Programming
JavaScript Normal vs Arrow Functions: Understanding 'this' Behavior
More Relevant Posts
-
🟨 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗶𝘀 𝘀𝗶𝗻𝗴𝗹𝗲-𝘁𝗵𝗿𝗲𝗮𝗱𝗲𝗱 — 𝘀𝗼 𝗵𝗼𝘄 𝗱𝗼𝗲𝘀 𝗶𝘁 𝗵𝗮𝗻𝗱𝗹𝗲 𝗮𝘀𝘆𝗻𝗰 𝘁𝗮𝘀𝗸𝘀? JavaScript runs on **one main thread**. Yet it can handle things like: 🌐 network requests ⏳ timers 📦 user interactions The secret is the **Event Loop**. It manages: • Call Stack • Task Queue • Callback execution So while one task runs, others wait in the queue. 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗶𝘀𝗻’𝘁 𝗽𝗮𝗿𝗮𝗹𝗹𝗲𝗹 — 𝗶𝘁’𝘀 𝘀𝗺𝗮𝗿𝘁𝗹𝘆 𝗼𝗿𝗴𝗮𝗻𝗶𝘇𝗲𝗱. #JavaScript #Programming #LearningInPublic #ITStudent
To view or add a comment, sign in
-
-
Mastering JavaScript Loops: A Comprehensive Guide Loops are fundamental constructs in programming, allowing you to execute a block of code repeatedly. This tutorial dives deep into all types of loops in JavaScript, explaining their syntax, use cases, and best practices with practical code examples. Learn to choose the right loop for every scenario. Read the full article 👇 https://lnkd.in/dM2U38MH #Technology #Programming #WebDevelopment #SoftwareEngineering #JavaScript #JSLoops #CodingTips #FrontendDevelopment #FutureOfWork #DigitalTransformation
To view or add a comment, sign in
-
-
⚡ JavaScript: var vs let vs const Understanding the difference between var, let, and const is essential for writing clean and modern JavaScript. #JavaScript #WebDevelopment #FrontendDevelopment #Coding #Programming #FullStackDeveloper #LearnToCode
To view or add a comment, sign in
-
-
Your browser is not the only place you can see your JavaScript log. You can see it on vs code terminal, here is how? #javascript #react #codingtips #programming
To view or add a comment, sign in
-
JavaScript Tutorial 10 ► https://lnkd.in/g7WUhxSD ► In this tutorial, learn about identifiers in JavaScript and how they are used to name variables, functions, and objects. Understand the rules and best practices for creating valid identifiers in your code. JavaScript Tutorials Playlist: ► https://lnkd.in/getnwV5e #JavaScript #LearnJavaScript #WebDesign #WebDevelopment #CodingForBeginners #Programming #Coding
To view or add a comment, sign in
-
-
JavaScript Tutorial 10 ► https://lnkd.in/gSN2Yx7U ► In this tutorial, learn about identifiers in JavaScript and how they are used to name variables, functions, and objects. Understand the rules and best practices for creating valid identifiers in your code. JavaScript Tutorials Playlist: ► https://lnkd.in/g-TAmZZ3 #JavaScript #LearnJavaScript #WebDesign #WebDevelopment #CodingForBeginners #Programming #Coding
To view or add a comment, sign in
-
-
🚀 JavaScript Concept – What’s the Output? An object is stored inside an array and then the original variable is set to null. Does this change the value inside the array? 🤔 This question tests your understanding of references in JavaScript. Comment your answer below! 👇 #JavaScript #Coding #WebDevelopment #Programming #LearnTogether
To view or add a comment, sign in
-
-
🟨 𝗩𝗮𝗿, 𝗹𝗲𝘁, 𝗰𝗼𝗻𝘀𝘁 — 𝘁𝗵𝗲𝘆’𝗿𝗲 𝗻𝗼𝘁 𝘁𝗵𝗲 𝘀𝗮𝗺𝗲 JavaScript offers three ways to declare variables, but they behave very differently. `var` 🔁 function-scoped ⚠️ can be redeclared `let` 📦 block-scoped 🔄 can be reassigned `const` 🔒 block-scoped ❌ cannot be reassigned 𝗖𝗵𝗼𝗼𝘀𝗶𝗻𝗴 𝘁𝗵𝗲 𝗿𝗶𝗴𝗵𝘁 𝗸𝗲𝘆𝘄𝗼𝗿𝗱 𝗽𝗿𝗲𝘃𝗲𝗻𝘁𝘀 𝗵𝗶𝗱𝗱𝗲𝗻 𝗯𝘂𝗴𝘀. #JavaScript #Programming #LearningInPublic #ITStudent
To view or add a comment, sign in
-
-
🚀 React Series: Day 9 – Mastering the useRef Hook useRef is essential for direct DOM access and storing mutable values without triggering unnecessary re-renders. 💡 It optimizes performance by maintaining persistent data across the component's lifecycle efficiently. #ReactJS #WebDevelopment #FrontendDeveloper #JavaScript #CodingTips #SoftwareEngineering #ReactHooks #Programming #WebDesign #Techcommunity #UIUX #FullStackDeveloper
To view or add a comment, sign in
-
-
In this video, we break down Javascript Closures in a simple and practical way. This short coding tutorial is perfect for developers who want to learn Javascript quickly without long explanations. 📌 Topics covered: - what is closures? - where closures are used - real world examples - interview trap 💡 Great for: - JavaScript & React developers - Interview preparation - Improving real-world coding skills 🔔 Subscribe to Snackable Code for bite-sized programming tutorials. #javascript #react #coding #webdevelopment #programming #shorts https://lnkd.in/gGqYmuS3
Javascript closures explained in 2 minutes #coding #programming #javascript #nodejs
https://www.youtube.com/
To view or add a comment, sign in
More from this author
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