Day 2 of My JavaScript Journey Today was all about understanding functions and scope — core concepts that make JavaScript powerful 💻 🔹 Created both normal functions and arrow functions with parameters 🔹 Worked with objects + functions to print dynamic output 👉 “Rahul is learning React” 🔹 Learned about scope (Global vs Local) 📌 Inside function → Local value 📌 Outside function → Global value 🔹 Built a simple multiply function using arrow syntax 💡 Key Takeaway: Functions help write reusable code, and understanding scope avoids unexpected bugs. Step by step, improving my logic and confidence in JavaScript 🔥 #JavaScript #CodingJourney #WebDevelopment #100DaysOfCode #LearnInPublic #ReactJS
Learning JavaScript Functions and Scope
More Relevant Posts
-
🚀 Understanding Async JavaScript: async/await vs .then() Today I practiced handling asynchronous operations in JavaScript using both Promises and async/await 🔥 📌 What I explored: 💡 Key Insight:While .then() works perfectly, async/await makes asynchronous code look synchronous — improving readability and maintainability. 🧠 Example takeaway: Both approaches are powerful — choosing the right one depends on the use case! 🌐 API used: JSONPlaceholder for dummy data testing 📈 Small steps every day towards mastering JavaScript! #JavaScript #AsyncAwait #WebDevelopment #FrontendDeveloper #CodingJourney #LearnInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 947 of #1000DaysOfCode ✨ The Shortest JavaScript Program (You’ll Be Surprised 😮) This is one of those concepts that looks super simple… but completely changes how you see JavaScript. In today’s post, I’ve broken down the shortest possible JavaScript program — and trust me, it’s not just about writing less code. Behind this tiny piece of code lies how JavaScript actually runs your program, creates execution context, and prepares memory before even executing a single line. Sounds crazy? Wait till you see it. This is the kind of concept that once you understand, a lot of “weird JavaScript behavior” suddenly starts making sense. If you’re serious about mastering JavaScript, you don’t want to miss this one. 👉 Swipe through the carousel — this might blow your mind 🤯 👇 Did you already know what the shortest JS program is? #Day947 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #Next #CodingCommunity #JSDeepDive
To view or add a comment, sign in
-
🚀 Day 71 | Practice of All Function Types Today I focused on practicing all types of functions in JavaScript 💻 🔹 What I Worked On: • Practiced function declaration and function expression • Worked with functions using parameters and return values • Revised anonymous functions and arrow functions • Implemented higher-order functions and callbacks • Practiced recursive functions with different examples • Revisited IIFE and object methods 💡 Key Learning: • Practice helps in understanding when to use each type of function • Improved confidence in writing and structuring functions • Better clarity on real-world usage of callbacks and recursion 🔥 Takeaway: 👉 The more you practice functions, the stronger your JavaScript foundation becomes Consistency is turning concepts into skills 🚀 #Day71 #JavaScript #Functions #Practice #ProblemSolving #CodingJourney #10000Coders #FrontendDeveloper #SravanKumarSir
To view or add a comment, sign in
-
🚀 Day 949 of #1000DaysOfCode ✨ 15 JavaScript Snippets Every Developer Must Know Sometimes, small snippets can save you hours of effort and make your code much cleaner. In today’s post, I’ve shared 15 powerful JavaScript snippets that every developer should have in their toolkit — from handling arrays and objects to writing cleaner and more efficient logic. These are not just shortcuts, but practical patterns that you’ll find yourself using again and again in real-world projects. Knowing these snippets helps you write code faster, reduce bugs, and improve overall readability. If you’re working with JavaScript daily, mastering these small patterns can make a big difference in your productivity. 👇 Which JavaScript snippet do you use the most in your projects? #Day949 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #Next #CodingCommunity #JSDevelopers
To view or add a comment, sign in
-
Today I focused on understanding loops and functions in JavaScript and it really changed how I think about writing code. I learned how to use: for loops, while loops,how iteration works step by step, function return,callback function,scope. At first, it was a bit confusing (especially getting stuck in an infinite loop 😅) but after practicing, I started seeing how powerful loops are for repeating tasks and reducing code. One thing that stood out to me is how a small mistake (like using the wrong increment/decrement) can completely break your logic. Then I moved into functions which made everything cleaner and more organized. Instead of repeating the same code, I can now wrap logic inside a function and reuse it anytime. #JavaScript #FrontendDevelopment #LearningToCode
To view or add a comment, sign in
-
-
Day 8 of My JavaScript Journey 🚀 Today, I started learning about functions in JavaScript. Functions are used to group and reuse code, making programs more organized and efficient. There are three types of functions: • Function declaration • Function expression • Arrow function Today, I focused on function declaration. Example: function greet(name) { return "Hello " + name; } One thing I noticed: Functions can feel a bit difficult at first, but they are a core part of JavaScript. So instead of rushing, I’m taking my time to truly understand how they work. Key takeaway: Mastering functions is essential because they are used everywhere in JavaScript. #JavaScript #WebDevelopment #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 1/30 — JavaScript Journey Begins “You’re not bad at JavaScript… You just learned it the WRONG way.” Most beginners jump straight into frameworks like React… Without understanding the language itself. That’s the biggest mistake. ❌ Today, we fix that. 👇 🔥 What I Learned Today: ✅ What is JavaScript (and why it runs everywhere) ✅ How JS works in the browser ✅ Variables (let, const, var) — the RIGHT way ✅ Basic data types (string, number, boolean, null, undefined) 💡 Reality Check: If your foundation is weak… No framework can save you. Strong basics = Strong developer. 🎯 Day 1 Task: ✔️ Write 10 variable examples ✔️ Experiment in browser console ✔️ Understand let vs const deeply ⚡ Commitment: I will show up for 30 days. No excuses. No shortcuts. 💬 Comment “DAY 1” if you’re starting with me 🔁 Follow for daily JavaScript mastery #JavaScript #WebDevelopment #CodingJourney #LearnToCode #30DaysChallenge
To view or add a comment, sign in
-
-
I've been writing JavaScript for over a year. Thought I understood var, let, and const. I didn't. "var a" inside a block accessible outside. Prints "10". "let b" inside the same block, try to access it outside and you get: ReferenceError: b is not defined Same block. Same code. Completely different behavior. Turns out var lives in global memory. let and const get their own separate block scope. Once the block is done, they're gone. This is why going back to fundamentals matters #JavaScript #WebDev #LearnInPublic #NamasteJavaScript
To view or add a comment, sign in
-
-
JavaScript becomes a different language the moment you realize this: 👉 Functions are not just reusable blocks… they are values. And once you understand that, concepts like callbacks and higher-order functions stop feeling confusing and start feeling natural. In this video, I’ve broken it down step by step: How values behave in JavaScript How objects behave Why functions behave the same way (and why that matters) From there, everything builds logically: ✔ Passing functions as arguments ✔ Returning functions from functions ✔ What exactly a callback is ✔ What a higher-order function is ✔ How this leads to more flexible and reusable code No jargon. No unnecessary complexity. Just a clear, practical approach to a core JavaScript concept. 🎥 Watch here: https://lnkd.in/gM8ibZ6M This is Part 1 — next, we’ll explore how this shows up in real code with: setTimeout, forEach, map, filter #JavaScript #WebDevelopment #FrontendDevelopment #Programming #Coding #LearnToCode #JavaScriptDeveloper #SoftwareDevelopment #Developers #CodingJourney #TechEducation #Hosiyar #JS
Callback Functions and Higher Order Functions in JavaScript | JS Mastery #12
https://www.youtube.com/
To view or add a comment, sign in
-
Published My New Blog on Hashnode! Understanding JavaScript can feel confusing at first—especially when it comes to Synchronous vs Asynchronous behavior. So I decided to break it down in the simplest way possible. 🧠 In this blog, I explained: What synchronous code really means (step-by-step execution) What asynchronous code is (doing things without waiting) Why JavaScript needs async behavior Real-life examples like API calls & timers Problems with blocking code (why apps freeze ) Easy diagrams to visualize everything link :- [https://lnkd.in/gkdRbW56] #JavaScript #WebDevelopment #CodingForBeginners #AsyncJavaScript #LearnToCode #FrontendDevelopment
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