Here’s a clean and engaging LinkedIn post for Day 10 – Variables & Data Types 👇 🚀 Day 10 of My Web Development Journey 🧠 JavaScript Variables & Data Types Today I learned how JavaScript stores and manages data using variables. The three main ways to declare variables are: 🔹 var – the older way (less used in modern JS) 🔹 let – used when the value might change 🔹 const – used when the value should stay constant 💡 Simple real example: let cartTotal = 50; let discount = 20; let finalTotal = cartTotal - discount; console.log(finalTotal); // 30 ⚠️ Common beginner mistake I noticed: Mixing up var, let, and const, or using const for values that need to change. Learning JavaScript feels like learning how the brain of a website works. Small steps every day. 🚶♂️ 👉 Question for developers: Do you prefer let or const in most cases? #WebDevelopment #JavaScript #CodingJourney #LearningInPublic #Frontend #Day10
JavaScript Variables & Data Types: var, let, const
More Relevant Posts
-
🔥 90% of Websites Have This One JavaScript Problem - Here's How to Fix It I've seen many websites struggle with a basic JavaScript concept: understanding asynchronous code. Imagine you're at a restaurant, and you order food. You don't just sit there waiting for the food to be prepared; you keep looking at your phone or chatting with friends. That's basically what asynchronous code does - it allows your program to do other things while waiting for a task to complete. For example, think of a website that needs to fetch data from a server. With synchronous code, the website would freeze until the data is loaded. But with asynchronous code, the website can continue to run smoothly while waiting for the data. Here's a simple example: ```javascript // Synchronous code const data = fetchData, , ; console.log, data, ; // Asynchronous code fetchData, , .then, data = console.log, data, , ; ``` In the asynchronous example, the code doesn't wait for `fetchData, , ` to complete before logging to the console. Instead, it uses a callback function to handle the data when it's ready. Did this help? Save it for later. Check if your website has this problem by testing its performance with tools like Google PageSpeed Insights. #WebDevelopment #LearnToCode #JavaScript #CodingTips #TechEducation #WebDesign #AsynchronousCode #SynchronousCode #PerformanceOptimization #FrontendDevelopment #BackendDevelopment #FullStackDevelopment #WebPerformance #CodingBestPractices #JavaScriptTips
To view or add a comment, sign in
-
💡 Ever wondered why JavaScript feels like ordering coffee? Let’s break it down. Imagine you walk into a coffee shop and say “I’d like a latte, please.” The barista takes your order, checks the menu, and starts making it. JavaScript works the same way: you give it a command, it looks up the data, then returns a result. When you click a button on a site, the code behind it runs a fetch request. Think of fetch as the barista calling the kitchen. The code says, “Hey server, give me the latest news article.” The server replies with the article data, and JavaScript turns that data into visible text on your page. It’s just a simple request‑response loop, just like ordering coffee. According to a recent LinkedIn post titled Daily Coding Habit Boosts Web Development Skills, coding daily sharpens your skills. That same habit helps you master these small request‑response patterns quickly. Try this next time you hit a button on a site: pause for a second, imagine the barista making your coffee, and you’ll see how JavaScript is just a friendly waiter serving data to you. Check if your website’s buttons are already making smooth requests. If not, give fetch a try and feel the difference. #WebDevelopment #LearnToCode #WordPress #CodingTips #TechEducation #WebDesign #JavaScript #Frontend #React #API #Fetch #CoffeeShop #Analogies #DailyCoding #HabibAhmed
To view or add a comment, sign in
-
🚀 Day 2 : How to Add & Use JavaScript in Model-Driven Apps- Continuing my JavaScript learning journey in Power Apps – Model-Driven Apps. JavaScript is not written directly inside the form. It follows a proper structure. ✅ Step 1: Write JavaScript in a .js file We write the code in VS Code or Notepad and save it as: ->filename.js ✅ Step 2: Upload as a Web Resource Inside Power Apps: >Go to Solution >Create a JavaScript Web Resource >Upload the .js file >Save & Publish ✅ Step 3: Add Web Resource to the Form >Open the Form >Go to Form Properties >Add the JavaScript Library ✅ Step 4: Call Function on Events Attach the function to: >OnLoad >OnChange >OnSave 🧠 What I Learned Today JavaScript in Model-Driven Apps works through: -> .js file → Web Resource → Form → Event → Execution It’s structured, controlled, and event-driven. #PowerApps #ModelDrivenApps #JavaScript #Dynamics365 #Dataverse #LearningJourney #Day2 #LowCode
To view or add a comment, sign in
-
🚀 Web Development Journey - JavaScript Day 5 Today I focused on understanding how JavaScript handles data using objects. Here’s what I covered: 🔹 Objects in JavaScript Creating and working with key-value pairs to structure data. 🔹 Nested Objects Storing objects inside objects for more complex data structures. 🔹 Object Methods Adding functions inside objects to perform actions. 🔹 this Keyword Understanding how to reference object properties within methods. It’s becoming clearer how JavaScript models real-world data and behavior. Next up: Constructor Functions 🔥 #WebDevelopment #JavaScript #100DaysOfCode #LearningInPublic #FrontendDevelopment
To view or add a comment, sign in
-
-
I used to wonder: if JavaScript can only do one thing at a time, why doesn't the whole website stop whenever I'm waiting for a slow API? Today, I’m documenting the "Magic" behind the scenes: The Event Loop. Think of it as a traffic controller that keeps everything moving. Here is what I learned about how it works: The Call Stack: This is my "To-Do List." It finishes one task before moving to the next. 1) The Waiting Room (Web APIs): When I set a timer or fetch data, JavaScript sends it here so the main list stays free for other work. 2) The Callback Queue: This is where finished tasks wait in line for their turn. 3) The Event Loop: The star of the show. It waits until the Stack is empty, then pushes the next task from the line into the code. The "Senior Secret" I learned today: Never run massive calculations directly on the main thread. It blocks the loop and makes the website feel laggy or "dead." I'm not a master yet, but understanding this makes me much better at fixing bugs. Tomorrow, I'm looking at where we hide all our data: Browser Storage! Did the Event Loop ever confuse you? It definitely took me a few tries to finally "get it"! #CodeWithWajid #JavaScript #EventLoop #WebDevelopment #100DaysOfCode #LearningToCode #BuildingInPublic
To view or add a comment, sign in
-
I recently built a GitHub Issues Tracker to practice working with APIs and core JavaScript concepts. The project starts with a login page. When the correct username and password are entered, the user is redirected to the main dashboard. On the main page, issues are organized into three sections: All, Open, and Closed. Clicking each button dynamically renders the correct set of issues. All → shows every issue Open → filters and shows only open issues Closed → filters and shows only closed issues All issue data is fetched from an external API, and I used the JavaScript filter() method to separate open and closed issues. Each issue is displayed as a card. When a card is clicked, a modal opens with the detailed information of that issue. I also added a search feature where users can find issues by typing a keyword and either pressing the Search button or hitting Enter. Some small UI details I enjoyed implementing: • Conditional rendering to show different top border styles based on issue status • Dynamic content rendering based on user interaction • Clean card-based layout with modal interaction Tech used: HTML5 • CSS3 • Tailwind CSS • DaisyUI • Vanilla JavaScript • External API Live Link: https://lnkd.in/gbfmXN_2 This project helped me strengthen my core JavaScript knowledge, especially working with API data, filtering, dynamic rendering, and UI interaction. Always open to feedback and learning more. 🚀 #WebDevelopment #TailwindCss #DaisyUi #API #VanillaJavaScript
To view or add a comment, sign in
-
🚀 Day 6 & 7/100 — #100DaysOfCode The past two days were all about making websites truly interactive and dynamic 💻 I explored how JavaScript connects with the browser and handles real user behavior. 📚 What I learned: 🌐 DOM (Document Object Model) • Selecting and manipulating HTML elements • Dynamically updating content and structure 🖱️ Events & Event Handling • Handling user actions like clicks, inputs, and submissions • Using addEventListener for better control 📝 Forms & Validation • Capturing user input • Validating data before submission ⏱️ Timers & Intervals • setTimeout — run code after delay • setInterval — run code repeatedly 💾 Web Storage • localStorage — stores data permanently • sessionStorage — stores data per session • Cookies — small data stored in browser 💡 Key Insight: JavaScript is not just about logic — it’s about creating interactive experiences for users. 🔥 Day 7 complete. Learning how real-world web apps actually work. #JavaScript #WebDevelopment #100DaysOfCode #CodingJourney #BuildInPublic
To view or add a comment, sign in
-
-
90% of JavaScript developers Google the same syntax daily 🤔 So We built a JavaScript Full Cheat Sheet that replaces dozens of tabs in seconds. ⚡📌 If you're learning JavaScript programming or building real-world web development projects, this quick guide simplifies the essentials developers use every day: ✅ JavaScript Basics 🧠 – Variables, data types, type checking, and operators that form the foundation of clean code. ✅ Control Flow & Loops 🔁 – Master if/else, switch statements, for/while loops, and conditional logic used in real applications. ✅ Modern ES6+ Features 🚀 – Write better JavaScript code with arrow functions, destructuring, spread operators, and default parameters. ✅ DOM Manipulation 🖥️ – Use querySelector, event listeners, and dynamic UI updates to power interactive web apps. ✅ Async JavaScript ⏳ – Understand Promises, async/await, APIs, and JSON for scalable frontend and backend workflows. 🚀 Level Up Your Skills For deep-dives into these concepts, I highly recommend checking out the latest documentation and tutorials from JavaScript Mastery and GeeksforGeeks. 💬 Quick developer poll: Which JavaScript topic should we turn into the next cheat sheet? #imperio_coders #Javascript #WebDevelopment #Frontend #Education #Technology #Coding #Community #FutureOfWork #Careers
To view or add a comment, sign in
-
Building a Productivity Dashboard from Scratch Recently I started working on a small project - a Productivity Dashboard built using HTML, CSS, and Vanilla JavaScript. The idea was simple: bring a few useful tools into one clean interface. So far it includes: • 📅 Real-time date & clock • 🌤️ Weather information • 📝 To-Do List • 📋 Daily Planner • ⏳ Pomodoro timer • 💡 Motivation section • 🎨 Theme switcher Even though I already have some experience with React, building projects using plain HTML, CSS, and JavaScript reminds me how important the fundamentals really are. Frameworks make things faster, but understanding what’s happening underneath makes you a much better developer. The dashboard is almost complete, just a few final touch-ups left before it’s fully polished. Building small tools like this has been a great way to strengthen my fundamentals while creating something actually useful. #DAY3 #21DaysLinkedInChallenge #Cohort2.0 #Sheryians #SheryiansCodingSchool
To view or add a comment, sign in
-
-
Most JavaScript bugs don't come from complex logic. They come from misunderstanding variables. I've seen beginners (and even experienced developers) spend hours debugging issues that trace back to one thing: not truly understanding how var, let, and const behave under the hood. That's exactly why I wrote this next article in my series: "JavaScript Variables and Data Types" — a complete breakdown of the foundation every JavaScript developer needs. What you'll learn: ✅ What variables are and the mental model that makes them intuitive ✅ All 7 primitive data types in JavaScript (most guides only cover 5) ✅ How var, let, and const actually differ — including hoisting and the scoping behavior that causes real bugs ✅ Why var was replaced and what problems it quietly caused for years ✅ What block scope is and why it matters more than you think ✅ When to use let vs const with clear, practical rules ✅ 3 hands-on exercises to turn this from reading into doing This is part of the Zero to Full Stack Developer: From Basics to Production series — a free, structured path that takes you from zero coding knowledge to building real production-grade applications. Read here: https://lnkd.in/gKg83tgU Follow the complete series: https://lnkd.in/g2urfH2h What JavaScript concept took you the longest to truly understand — and what finally made it click? #WebDevelopment #FullStackDeveloper #Programming #JavaScript #ES6 #SoftwareEngineering #WebDev #TechBlog #LearnToCode
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