Day 35/100 – JavaScript Learning 🚀 Today I gained clarity on an important JavaScript concept: Hoisting. Hoisting is JavaScript’s behavior of moving variable declarations to the top of their scope before code execution. Example: console.log(a); var a = 10; Output: undefined This happens because JavaScript interprets the code like this: var a; console.log(a); a = 10; Key takeaways: var declarations are hoisted and initialized with undefined let and const are also hoisted, but they are not initialized Accessing let or const before declaration results in an error Understanding hoisting explains many unexpected undefined outputs and helps in writing more predictable JavaScript code. Building strong fundamentals, one concept at a time. #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic #Hoisting #Day35
Understanding JavaScript Hoisting
More Relevant Posts
-
📌 JavaScript Learning Resource – Cheat Sheet While revising JavaScript, I found a helpful cheat sheet that summarizes core concepts like variables, operators, control flow, functions, arrays, DOM basics, and async ideas. Sharing it here for anyone who is refreshing JS fundamentals like me. Found this while learning and thought it might help others too. #JavaScript #LearningJourney #WebDevelopment #StudentsInTech
To view or add a comment, sign in
-
📌 JavaScript Learning Resource – Cheat Sheet While revising JavaScript, I found a helpful cheat sheet that summarizes core concepts like variables, operators, control flow, functions, arrays, DOM basics, and async ideas. Sharing it here for anyone who is refreshing JS fundamentals like me. Found this while learning and thought it might help others, too. Follow Muhammad Nouman for more useful content #JavaScript #LearningJourney #WebDevelopment #StudentsInTech
To view or add a comment, sign in
-
Day 5 of JavaScript Learning 🚀 I practiced implicit coercion & operators in JavaScript by running examples directly in the Node.js terminal. ✔️ Tried number + number ✔️ Tried string + number ✔️ Checked how +, -, * behave with strings ✔️ Tested operations with true and false ✔️ Observed results with null and undefined ✔️ Compared values using == ✔️ Used Number() to see conversion results ✔️ Noted when JavaScript returns NaN All experiments were done hands-on in VS Code terminal to understand how JavaScript actually behaves during execution. Learning by practice, not just reading 💻✨ #JavaScript #Day5 #JSPractice #TapAcademy
To view or add a comment, sign in
-
-
I’m happy to share my JavaScript documentation on the NextZen Freedu learning platform. This document focuses on core modern JavaScript concepts, including: ✔ JavaScript Variables (var, let, const) ✔ Spread Operator ✔ Arrow Functions All topics are explained in simple and clear language, with examples and full code. #NextZenFreedu #JavaScript #WebDevelopment #LearningPlatform
To view or add a comment, sign in
-
Day 40/100 – JavaScript Learning 🚀 Today I learned about an important JavaScript concept that explains how code is executed behind the scenes: 👉 The Call Stack The call stack is a mechanism JavaScript uses to keep track of function execution. Every time a function is called, it is added to the stack. When the function finishes, it is removed from the stack. Example: function first() { second(); } function second() { console.log("Hello"); } first(); Execution order: first() is added to the stack second() is added on top of it console.log() runs second() is removed first() is removed 💡 Key points I learned: JavaScript uses a single call stack Functions run one at a time A blocked stack can freeze the application Stack overflow happens when too many calls are made Understanding the call stack makes it easier to: Debug errors Understand recursion Learn asynchronous JavaScript Read error stack traces This topic made JavaScript feel less mysterious and more logical. Strong fundamentals build strong developers. 💪 #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic #CallStack #Day40
To view or add a comment, sign in
-
-
📌 JavaScript Learning Resource – Cheat Sheet While revising JavaScript, I found a helpful cheat sheet that summarizes core concepts like variables, operators, control flow, functions, arrays, DOM basics, and async ideas. Sharing it here for anyone who is refreshing JS fundamentals like me. Found this while learning and thought it might help others, too. Follow Nikhil Tiwari for more useful content w3schools.com JavaScript Mastery #JavaScript #LearningJourney #WebDevelopment #StudentsInTech
To view or add a comment, sign in
-
𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭 𝐯𝐬 𝐓𝐲𝐩𝐞𝐒𝐜𝐫𝐢𝐩𝐭 🤔 JavaScript is fast, flexible, and easy to start with. You can build things quickly, and it runs pretty much everywhere ⚡ But as projects grow, I’ve noticed how runtime errors can slow things down and make debugging stressful 😅 That’s where TypeScript really stands out. Adding static typing, catching errors at compile time, and getting better tooling just makes development feel more controlled and scalable 🛡️ For me: 👉 JavaScript gives speed 👉 TypeScript gives safety and scalability Both have their place — it’s all about choosing the right tool for the right stage of the project. Still learning. Still improving. 🚀 #JavaScript #TypeScript #WebDevelopment #DeveloperJourney #LearningInPublic #Upskilling #TechJourney
To view or add a comment, sign in
-
-
📌 JavaScript Learning Resource – Cheat Sheet While revising JavaScript, I found a helpful cheat sheet that summarizes core concepts like variables, operators, control flow, functions, arrays, DOM basics, and async ideas. Sharing it here for anyone who is refreshing JS fundamentals like me. Found this while learning and thought it might help others, too. Follow Rahul Choudhary for more useful content w3schools.com JavaScript Mastery #JavaScript #LearningJourney #WebDevelopment #StudentsInTech
To view or add a comment, sign in
-
Different Ways to Write Functions in JavaScript This visual summarizes the most commonly used function patterns in JavaScript — from function declarations to arrow functions and IIFEs. Understanding when and why to use each type helps in writing cleaner, more maintainable, and efficient code. #JavaScript #WebDevelopment #Frontend #Learning #CodingBasics
To view or add a comment, sign in
-
-
Execution Context is a fundamental concept in JavaScript that dictates how our code runs. I found it interesting that understanding this can significantly enhance our grasp of variable scope and function behavior. How has a deeper understanding of execution context changed your approach to coding in JavaScript?
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