While learning JavaScript, I focused on functions. At first, I used to write code again and again for similar tasks. But functions made things much easier. A function helps you reuse code instead of repeating it. Some things I practiced: • Creating simple functions • Passing values (parameters) • Returning results • Using functions to organize code better One thing I realized — functions are not just about writing code, they help in thinking in smaller steps. Breaking problems into small parts makes everything easier to understand. Still learning and improving every day. 🚀 #WebDevelopment #JavaScript #FrontendDeveloper #LearningInPublic #CodingJourney #Student #Job #GTU #linkedIn #Learning #Post
Mastering JavaScript Functions for Efficient Coding
More Relevant Posts
-
👨💻 Asynchronous JavaScript Guide!🔥 😊 𝐇𝐚𝐩𝐩𝐲 𝐜𝐨𝐝𝐢𝐧𝐠! 💯 Follow ABDUL REHMAN ♾️ For Development, Programming Tips & Tricks, and Job Opportunities. 👍 𝑯𝒊𝒕 𝒍𝒊𝒌𝒆, if you found it helpful ! 🔁 𝑹𝒆𝒑𝒐𝒔𝒕 it to your network ! 🔖 𝑺𝒂𝒗𝒆 it for the future ! 📤 𝑺𝒉𝒂𝒓𝒆 it with your connections ! 💭 𝑪𝒐𝒎𝒎𝒆𝒏𝒕 your thoughts ! Credits - Respective owners Follow To Learn: w3schools.com , JavaScript Mastery #Asynchronous #JavaScript #Guide #Promises #WebDev w3schools.com JavaScript Mastery
To view or add a comment, sign in
-
JavaScript Practicum – A Beginner-Focused Learning Repository I noticed something while learning JavaScript… Most beginners don’t struggle with concepts. They struggle with how to practice. To address this, I worked with Giri Ganesh to build a focused resource — JavaScript Practicum. It contains multiple small projects built using HTML, CSS, and JavaScript. Each project follows a clean and consistent structure: - index.html - style.css - script.js We have also included README files with clear explanations, previews, and relevant learning resources. The idea is simple: to make practice structured and easy to follow. This was initiated earlier this year, and we will continue adding more projects over time. If you are learning JavaScript, this may help you stay consistent. Feedback and suggestions are welcome. Repository: https://lnkd.in/gmqrAUDK #JavaScript #WebDevelopment #OpenSource #LearningResources
To view or add a comment, sign in
-
-
🚀 Day 10 of My JavaScript Learning Journey Today I explored JavaScript Functions — the core building blocks of any application. 📌 Key concepts I learned: 🔹 Types of Functions • Named Functions – Functions with a defined name • Anonymous Functions – Functions without a name, often used for one-time use • Arrow Functions (=>) – Modern and concise syntax 🔹 Function Expressions • Functions can be assigned to variables and treated like data 🔹 Advanced Concepts • First-Class Functions – Functions can be passed as arguments and returned from other functions • Higher-Order Functions – Functions that work with other functions • IIFE (Immediately Invoked Function Expression) – Executes immediately after definition 🔹 Scope & Closures • Nested Functions create scope within scope • Important for managing variables and data access 🔹 Generators • Functions that allow pausable execution using yield ⚙️ Understanding functions is crucial because they help write modular, reusable, and efficient code. Step by step, I’m building strong JavaScript fundamentals and problem-solving skills. 💻✨ #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearningInPublic #DeveloperJourney #ProgrammingBasics
To view or add a comment, sign in
-
-
Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 8 Today I learned about Loops in JavaScript — a powerful way to repeat tasks efficiently. Loops help us execute the same block of code multiple times without writing it again and again. --- 🔎 1. for Loop (Most Used) for (let i = 1; i <= 5; i++) { console.log(i); } 👉 Output: 1 2 3 4 5 --- 🔎 2. while Loop let i = 1; while (i <= 5) { console.log(i); i++; } --- 🔎 3. do...while Loop let i = 1; do { console.log(i); i++; } while (i <= 5); --- 🧠 When to use what? • "for" → when you know how many times to loop • "while" → when condition-based loop • "do...while" → runs at least once --- 📌 Key Takeaways (Day 8) • Loops reduce repetitive code • "for" loop is most commonly used • Always be careful with infinite loops ⚠️ --- This is Day 8 of my JavaScript learning series. Next, I’ll explore Functions in JavaScript. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
Day 17 of my 21 Days Learning Challenge Today I revisited a React pattern — Higher Order Components (HOC). A Higher Order Component is a function that takes a component and returns a new enhanced component. It’s mainly used to reuse logic across multiple components. 🔹 What is an HOC? In simple terms: JavaScript const EnhancedComponent = HOC(OriginalComponent); Instead of repeating logic in multiple components, we wrap them with an HOC. 1️⃣ Example JavaScript function withLogger(Component) { return function WrappedComponent(props) { console.log("Props:", props); return <Component {...props} />; }; } Using it: JavaScript const User = ({ name }) => <h2>{name}</h2>; const UserWithLogger = withLogger(User); Now every time UserWithLogger renders, it logs props automatically. 2️⃣ Why use HOC? HOCs help: • reuse logic • keep components clean • separate concerns 3️⃣ Where it is used HOCs are commonly used for: • authentication checks • logging • data fetching • permissions handling 🔹 Note With modern React, Custom Hooks are often preferred for logic reuse, but HOCs are still important to understand as they are widely used in existing codebases. Revisiting HOCs reminded me how React provides multiple ways to structure and reuse logic, and choosing the right pattern depends on the use case. #21DaysChallenge #ReactJS #JavaScript #LearningInPublic #FrontendDevelopment #WebDevelopment Sheryians Coding School
To view or add a comment, sign in
-
Upskilling myself 🚀 Learning JavaScript: Today I Learned: ✅ JS Call Stack ✅ Breakpoints ✅ Single Threaded nature of JS ✅ Callback Hell ✅ Promises ✅ then() and catch() methods ✅ Promise chaining ✅ Result and error in promises Learning from Shradha Khapra, Apna College
To view or add a comment, sign in
-
Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 7 Today I learned about Conditions in JavaScript — how to make decisions in code. Conditions allow us to run different code based on different situations. --- 🔎 1. if Statement let age = 18; if (age >= 18) { console.log("You are an adult"); } --- 🔎 2. if...else let age = 16; if (age >= 18) { console.log("Adult"); } else { console.log("Not adult"); } --- 🔎 3. else if let marks = 75; if (marks >= 80) { console.log("A+"); } else if (marks >= 70) { console.log("A"); } else { console.log("B"); } --- 🔎 4. switch Statement let day = 2; switch(day) { case 1: console.log("Sunday"); break; case 2: console.log("Monday"); break; default: console.log("Invalid day"); } --- 📌 Key Takeaways (Day 7) • Conditions help make decisions • "if", "else", "else if" are most commonly used • "switch" is useful for multiple conditions --- This is Day 7 of my JavaScript learning series. Next, I’ll explore Loops in JavaScript. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
Continuing the journey of teaching JavaScript to blind students — today’s focus was on helping them move beyond hardcoded values. I introduced them to "prompt()" — a built-in JavaScript API used to collect input from users. One key concept we explored: Whatever comes from "prompt()" is always a string. To make this clear, I asked them to: let num = prompt("Guess a number"); console.log(typeof num); They saw the result themselves — ""string"". From there, we moved to type conversion, showing them how to turn input into a number: let num = Number(prompt("Guess a number")); That simple change opened up a lot of possibilities. We practiced with exercises: • Asking a user for their age and determining if they are an adult or minor • Prompting a number and checking if it is positive, negative, or zero To wrap up the class, I gave them a project assignment: • Build a BMI calculator with category classification • Create a temperature adviser system Step by step, they are learning to think like programmers — not just writing code, but understanding how data works. Teaching without relying on visuals forces deeper thinking, and the results are truly inspiring. We continue tomorrow 🚀 #JavaScript #Teaching #InclusiveEducation #Accessibility #Programming #LearningJourney
To view or add a comment, sign in
-
-
Day 10 of Learning JavaScript 🚀 Today I explored the difference between: for loop vs forEach() Observation: • for loop → more control • forEach → cleaner and readable Still learning when to use which — but getting clarity. #javascript #frontenddeveloper
To view or add a comment, sign in
-
Day 16 of my 21 Days Learning Challenge Today I revisited a core JavaScript concept — Execution Context and Call Stack. While writing JavaScript code, it may look like everything runs line by line, but behind the scenes, JavaScript follows a structured process to execute code. 1️⃣ Execution Context An Execution Context is the environment where JavaScript code is executed. There are mainly two types: • Global Execution Context (GEC) → created when the program starts • Function Execution Context (FEC) → created whenever a function is called Each execution context goes through two phases: 1. Memory Creation Phase 2. Execution Phase 2️⃣ Memory Creation Phase In this phase: • variables are allocated memory (undefined) • functions are stored in memory Example: console.log(a); var a = 10; Here, a is initialized as undefined during the memory phase. 3️⃣ Execution Phase In this phase: • code runs line by line • values are assigned • functions are executed 4️⃣ Call Stack The Call Stack keeps track of function execution. It follows LIFO (Last In, First Out). Example: function one() { two(); } function two() { console.log("Hello"); } one(); Execution order: one() → two() → console.log() Functions are added to the stack when called and removed when execution is complete. 🔹 Why this matters Understanding execution context and call stack helps in: • debugging code • understanding hoisting • mastering async JavaScript Revisiting this concept helped me better understand how JavaScript executes code behind the scenes, not just how we write it. #21DaysChallenge #JavaScript #LearningInPublic #FrontendDevelopment #WebDevelopment #SheryiansCodingSchool Sheryians Coding School
To view or add a comment, sign in
Explore related topics
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