🗓️ 𝐃𝐚𝐲 𝟑𝟕 – JavaScript: Functions Deep Dive Today’s session focused on understanding 𝘧𝘶𝘯𝘤𝘵𝘪𝘰𝘯𝘴 𝘪𝘯 𝘑𝘢𝘷𝘢𝘚𝘤𝘳𝘪𝘱𝘵 — the true building blocks of the language 💡 📘 𝘾𝙤𝙫𝙚𝙧𝙚𝙙 𝘾𝙤𝙣𝙘𝙚𝙥𝙩𝙨: ⚙️ 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝗕𝗮𝘀𝗶𝗰𝘀 – declaration, parameters, arguments 📥 𝗣𝗮𝗿𝗮𝗺𝗲𝘁𝗲𝗿𝘀 – required, destructured, rest, default 📤 𝗔𝗿𝗴𝘂𝗺𝗲𝗻𝘁𝘀 – positional, default, spread 🧩 𝗛𝗼𝗶𝘀𝘁𝗶𝗻𝗴 – variable vs function hoisting 🔁 𝗖𝗹𝗮𝘀𝘀𝗶𝗰 & 𝗡𝗲𝘀𝘁𝗲𝗱 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – understanding scope and the scope chain ⚡ 𝗜𝗜𝗙𝗘 (𝗜𝗺𝗺𝗲𝗱𝗶𝗮𝘁𝗲𝗹𝘆 𝗜𝗻𝘃𝗼𝗸𝗲𝗱 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝗘𝘅𝗽𝗿𝗲𝘀𝘀𝗶𝗼𝗻) – executing functions instantly 🏗️ 𝗔𝗿𝗿𝗼𝘄 / 𝗙𝗮𝘁 𝗔𝗿𝗿𝗼𝘄 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – concise syntax and lexical this 🕵️ 𝗔𝗻𝗼𝗻𝘆𝗺𝗼𝘂𝘀, 𝗛𝗶𝗴𝗵𝗲𝗿-𝗢𝗿𝗱𝗲𝗿, 𝗖𝗮𝗹𝗹𝗯𝗮𝗰𝗸, 𝗮𝗻𝗱 𝗙𝗶𝗿𝘀𝘁-𝗖𝗹𝗮𝘀𝘀 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – treating functions as values 🧠 𝗣𝘂𝗿𝗲 & 𝗜𝗺𝗽𝘂𝗿𝗲 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – understanding side effects Each concept made me realize how powerful and flexible functions are in JavaScript! 🚀 #JavaScript #Functions #FrontendDevelopment #LearningJourney #Sheryians #Cohort2_0 Sheryians Coding School Sheryians Coding School Community
JavaScript Functions Deep Dive: Understanding Basics, Parameters, Arguments, Hoisting, and More
More Relevant Posts
-
✨ Just wrapped up a small JavaScript exercise to sharpen my skills with functions! Nothing too fancy — just wanted to get more hands-on with JavaScript. Every little practice adds up, and it's always fun seeing how even a few lines of code can teach something new. 🚀 If you're also learning or revisiting JavaScript, let's connect and share tips! #JavaScript #CodingPractice #100DaysOfCode #W3schools #LearningByDoing
To view or add a comment, sign in
-
🗓️ 𝐃𝐚𝐲 𝟑𝟖 – JavaScript: Scope, Closures, Arrays & Objects Today’s session covered some of the most powerful and essential JavaScript concepts 👇 🧠 𝗦𝗰𝗼𝗽𝗲 & 𝗖𝗹𝗼𝘀𝘂𝗿𝗲𝘀 : 🌍 𝙎𝙘𝙤𝙥𝙞𝙣𝙜 𝙞𝙣 𝙅𝙖𝙫𝙖𝙎𝙘𝙧𝙞𝙥𝙩 – understanding global and function scope 🔒 𝘾𝙡𝙤𝙨𝙪𝙧𝙚𝙨 & 𝙎𝙘𝙤𝙥𝙞𝙣𝙜 𝙍𝙪𝙡𝙚𝙨 – how inner functions access outer variables 📦 𝗔𝗿𝗿𝗮𝘆𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 : 📘 What 𝗮𝗿𝗿𝗮𝘆𝘀 are and how to create them ⚙️ 𝘾𝙤𝙢𝙢𝙤𝙣 𝙢𝙚𝙩𝙝𝙤𝙙𝙨 : push(), pop(), shift(), unshift(), indexOf() 🔄 𝘼𝙙𝙫𝙖𝙣𝙘𝙚𝙙 𝙤𝙥𝙚𝙧𝙖𝙩𝙞𝙤𝙣𝙨: filter(), some(), map(), reduce(), slice(), reverse(), sort(), join(), toString() 🧩 𝘼𝙧𝙧𝙖𝙮 𝘿𝙚𝙨𝙩𝙧𝙪𝙘𝙩𝙪𝙧𝙞𝙣𝙜 & 𝙎𝙥𝙧𝙚𝙖𝙙 𝙊𝙥𝙚𝙧𝙖𝙩𝙤𝙧 for efficient handling 🔁 Iterating arrays using 𝙛𝙤𝙧 𝙡𝙤𝙤𝙥 & 𝙛𝙤𝙧𝙀𝙖𝙘𝙝() 🧱 𝗢𝗯𝗷𝗲𝗰𝘁𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 : 🗝️ Understanding 𝗼𝗯𝗷𝗲𝗰𝘁𝘀 𝗮𝘀 𝗸𝗲𝘆-𝘃𝗮𝗹𝘂𝗲 𝗽𝗮𝗶𝗿𝘀 🛠️ 𝗖𝗿𝗲𝗮𝘁𝗶𝗻𝗴, 𝗮𝗰𝗰𝗲𝘀𝘀𝗶𝗻𝗴, 𝗮𝗻𝗱 𝗱𝗲𝗹𝗲𝘁𝗶𝗻𝗴 properties 🏗️ Working with 𝗻𝗲𝘀𝘁𝗲𝗱 𝗼𝗯𝗷𝗲𝗰𝘁𝘀 Each topic added another layer to understanding how data and scope interact in JavaScript — truly the foundation of dynamic programming! 🚀 #JavaScript #LearningJourney #Sheryians #Cohort2_0 #WebDevelopment Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
As I continue learning JavaScript, I’m diving deeper into its core concepts. Today, I explored Hoisting, and it helped me understand how JavaScript handles code behind the scenes. What I learned about Hoisting: ~JavaScript moves variable and function declarations to the top of their scope before executing the code. This means: ~Functions can be called before they are declared ~Variables are initialized with undefined during the compilation phase ~Understanding execution context is crucial for clean and predictable code Why this concept is important? Hoisting may seem simple, but it forms the foundation of how JavaScript interprets code. It improves my understanding of: ~Execution phases ~Scope behavior ~Memory allocation ~Writing more structured and bug-free code My learning journey I’m currently focusing on strengthening my fundamentals concepts like: ~Hoisting ~Scope ~Closures ~Event loop ~DOM manipulation These basics are helping me build a strong foundation before moving toward frameworks and advanced topics. Every concept I learn brings me closer to writing cleaner, more efficient JavaScript. #JavaScript #LearningJourney #WebDevelopment #ProgrammingBasics #FrontendDeveloper
To view or add a comment, sign in
-
📘 Important Built-in JavaScript Methods You Must Know JavaScript gives us a treasure of built-in methods that make coding easier, cleaner, and more efficient. In today’s post, I’ve covered some of the most powerful and commonly used JS methods that every developer should master — from arrays and strings to objects and numbers. These methods can save you lines of code, improve readability, and help you write smarter, more elegant JavaScript. 💡 If you want to go from writing code to crafting solutions — this post is for you! 💬 Which JS method do you find yourself using the most? Drop it in the comments 👇 Follow Rensith Udara Gonalagoda for more useful content #learningoftheday #900daysofcodingchallenge #JavaScript #WebDevelopment #FrontendDevelopment #CleanCode #LearnToCode #Programming #CodeBetter
To view or add a comment, sign in
-
📘 Important Built-in JavaScript Methods You Must Know JavaScript gives us a treasure of built-in methods that make coding easier, cleaner, and more efficient. In today’s post, I’ve covered some of the most powerful and commonly used JS methods that every developer should master — from arrays and strings to objects and numbers. These methods can save you lines of code, improve readability, and help you write smarter, more elegant JavaScript. 💡 If you want to go from writing code to crafting solutions — this post is for you! 💬 Which JS method do you find yourself using the most? Drop it in the comments 👇 Follow Muhammad Nouman for more useful content #learningoftheday #900daysofcodingchallenge #JavaScript #WebDevelopment #FrontendDevelopment #CleanCode #LearnToCode #Programming #CodeBetter
To view or add a comment, sign in
-
🗓️ 𝐃𝐚𝐲 𝟑𝟎 – JavaScript Operators & Hoisting Today I explored JavaScript operators and variable behavior: ➕ 𝗔𝗿𝗶𝘁𝗵𝗺𝗲𝘁𝗶𝗰 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: +, -, *, /, %, ** 📝 𝗔𝘀𝘀𝗶𝗴𝗻𝗺𝗲𝗻𝘁 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: =, +=, -=, *=, /=, %= ⚖️ 𝗖𝗼𝗺𝗽𝗮𝗿𝗶𝘀𝗼𝗻 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: ==, ===, !=, !==, >, <, >=, <= 🔗 𝗟𝗼𝗴𝗶𝗰𝗮𝗹 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: &&, ||, ! ❓ 𝗧𝗲𝗿𝗻𝗮𝗿𝘆 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿: condition ? doThis : doThat 🔍 𝗧𝘆𝗽𝗲 𝗖𝗵𝗲𝗰𝗸𝗶𝗻𝗴 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: typeof, instanceof 🔤 𝗦𝘁𝗿𝗶𝗻𝗴 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿: + ( for concatenation) 📦 𝗦𝗽𝗿𝗲𝗮𝗱/𝗥𝗲𝘀𝘁 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿: overview of usage 🔄 𝗡𝘂𝗹𝗹𝗶𝘀𝗵 𝗖𝗼𝗮𝗹𝗲𝘀𝗰𝗶𝗻𝗴 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿: ?? (fallback for null/undefined) 🛡️ 𝗢𝗽𝘁𝗶𝗼𝗻𝗮𝗹 𝗖𝗵𝗮𝗶𝗻𝗶𝗻𝗴: ?. (safe access to nested values) ⚡𝗩𝗮𝗿𝗶𝗮𝗯𝗹𝗲 𝗛𝗼𝗶𝘀𝘁𝗶𝗻𝗴: understanding how JS moves declarations Building a deeper understanding of how JavaScript works under the hood! 💪 #JavaScript #FrontendDevelopment #LearningJourney #Sheryians #Cohort2_0 Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
Day 28 of #100DaysOfCode Hands On with JavaScript Basics Today’s session was packed with practical exercises that helped strengthen the JavaScript fundamentals I learned earlier. Key Topics Covered: Introduction to JavaScript and observing its behavior in webpages Linking JavaScript files and using the defer attribute Running JS directly in the browser console Variables and keywords: var, let, const Logging and user interaction (console, alert, prompt) Working with strings and template literals Statements, semicolons, and comments Expressions vs statements Data types, special values, and type conversions Primitive vs reference data types Along with the technical part, Harsh Vandana Sharma also shared valuable insights about industry standards, why many candidates face rejections in resumes and interviews, and how we can improve our approach to meet real-world expectations. Sheryians Coding School and Sheryians Coding School Community #100DaysOfCode #JavaScript #WebDevelopment #Frontend #CodingJourney #SheryiansCodingSchool
To view or add a comment, sign in
-
-
👉✅ “Setting a one-week goal to revise JavaScript again.” 💻Topic-1. JavaScript Constructor Function Hey everyone, 👋 Today, let’s talk about an interesting JavaScript topic — the Constructor Function. This is a special type of function that helps us create multiple similar objects without writing the same code again and again! 🔁 🧠 Key points to understand: The name of a constructor function always starts with a capital letter. We use the new keyword when creating an object. It automatically returns a new object. Through this concept, we can explore the basics of Object-Oriented Programming (OOP) in JavaScript — including concepts like inheritance and encapsulation. 🚀 If you’re learning JavaScript, understanding constructor functions is a must-have skill — it makes your code cleaner, reusable, and more efficient! #JavaScript #WebDevelopment #CodingTips #ConstructorFunction #FrontendDevelopment #LearningEveryday
To view or add a comment, sign in
-
-
✨ Day 9 — Mastering Functions in JavaScript (Part 1: The Fundamentals)! ✨ Today, I explored one of the most powerful and essential concepts in JavaScript — Functions! 💻 I started by understanding what a function really is — a reusable “code recipe” that helps us follow the DRY (Don’t Repeat Yourself) principle. 🔁 I learned about the anatomy of a function, including parameters vs. arguments, and the importance of the return keyword. Then, I discovered the difference between Function Declarations and Function Expressions, and how Hoisting works behind the scenes. To wrap up the fundamentals, I explored modern Arrow Functions (=>) — short, clean, and perfect for writing concise logic! ⚡ This session helped me understand how functions make our code modular, reusable, and easy to maintain — truly the foundation of JavaScript programming. 🚀 #Day9 #JavaScript #WebDevelopment #100DaysOfCode #LearningEveryday #Functions #FrontendDevelopment #CodingJourney #TechLearning
To view or add a comment, sign in
-
-
🚀 Day 8 of My 30 Days of JavaScript Journey ✅ Challenge: Function Composition (LeetCode #2629) Build a function compose(functions) that returns a new function representing the composition of all given functions. When called with an input x, it evaluates from right to left, applying each function in sequence. If no functions are provided, it returns the identity function — meaning f(x) = x. 💻 Language Used: JavaScript ❓ Problem Link: https://lnkd.in/gEXnFK4d 💡 Solution: https://lnkd.in/gjKcFQvB 🧠 Concept Highlighted: This challenge explores function composition, a key concept in functional programming, showing how multiple simple functions can combine to form powerful transformations. It reinforces the importance of execution order and function chaining in JavaScript. #Day8 #JavaScript #LeetCode #30DaysOfCode #CodingChallenge #WebDevelopment #FrontendDevelopment #FunctionalProgramming #LearningEveryday #ProblemSolving
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