💡 Day 2 of My Web Development Journey — JavaScript Practice 📌 Today’s Practice: Counting Vowels in a String const str = "javascript"; const vowels = "aeiouAEIOU"; let count = 0; for (let letter of str) { if (vowels.includes(letter)) { count++; } } console.log(count); 🔍 What I learned: How to loop through a string efficiently How .includes() simplifies conditions Writing cleaner, more readable code 🚀 Not perfect—but better than yesterday. If you're learning too, don’t wait to feel ready. Just start. #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic #FrontendDeveloper
Counting Vowels in JavaScript with Efficient Looping
More Relevant Posts
-
Day 2 of my Web Development Journey 💻 Today I learned some interesting concepts in JavaScript: dot notation, bracket notation, and optional chaining. We usually access object properties using dot notation like this: object.property But what if the property name starts with a number or contains special characters? In that case, dot notation doesn’t work. That’s where bracket notation comes in: object['property name'] It also allows us to use variables inside the brackets, which makes it more flexible. 😀 Another concept I explored today is optional chaining (?.). When trying to access a property from a nested object, if something doesn’t exist, the program can throw an error. Optional chaining helps avoid that by returning undefined instead of breaking the program. Learning step by step and enjoying the process 🚀 #WebDevelopment #JavaScript #LearningInPublic #Day2
To view or add a comment, sign in
-
-
🚀 Web Development Journey - JavaScript Day 8 Today’s focus: 🔹 Static Methods Understanding methods that belong to the class itself, not instances. 🔹 Private Methods Learning how to restrict access to certain parts of a class. 🔹 Private Static Methods Combining privacy with class-level functionality. Short session, but still progress. Staying consistent is the goal. Next up: The Document Object Model (DOM) 🔥 #WebDevelopment #JavaScript #100DaysOfCode #LearningInPublic #FrontendDevelopment
To view or add a comment, sign in
-
-
🚀 Sharing my Front-End Technologies Roadmaps 💻 🌐 HTML Roadmap 🔗 https://lnkd.in/gfyz_ZeR 🎨 CSS Roadmap 🔗 https://lnkd.in/gFu7WiXU ⚡ JavaScript Roadmap 🔗 https://lnkd.in/giW8zR4c 📘 Built for reference purposes 📌 Structured for easy learning flow 💡 Helpful for students, beginners, and aspiring developers Happy to share these resources with everyone interested in strengthening their front-end development skills and creating impactful web projects. #Frontend #HTML5 #CSS3 #JavaScriptDeveloper #FrontendRoadmap #CodingJourney #DeveloperCommunity #ProgrammingRoadmap #LearningResources #TechEducation #ResponsiveDesign #WebDesigner #CodeNewbie #CareerInTech
To view or add a comment, sign in
-
Every great web developer starts with the basics and grows through consistent learning and hands-on experience. From mastering core technologies like HTML and CSS to building dynamic applications with JavaScript, working with APIs, and eventually scaling with modern frameworks—this journey is all about progress, not perfection. What truly makes the difference is building real projects, staying consistent, and continuously upgrading your skills. Success in web development isn’t a destination—it’s a continuous journey of learning, building, and improving. #WebDevelopment #FrontendDeveloper #JavaScript #LearnToCode
To view or add a comment, sign in
-
-
💡 Day 5 of My Web Development Journey — JavaScript Practice The hardest bugs are not the complex ones… they’re the ones hiding inside “easy” problems. 🔹 Problem / Struggle Today I worked on reversing a string. At first, it felt too basic — something I should already know. But when I tried different approaches (loop vs built-in methods), I realized I wasn’t fully confident in why each method works. 🔹 What I Learned I explored two approaches: // Method 1: Built-in methods const str = "javascript"; const reversed = str.split("").reverse().join(""); // Method 2: Loop approach let result = ""; for (let i = str.length - 1; i >= 0; i--) { result += str[i]; } I learned: Built-in methods are fast, but loops build deeper understanding Logic matters more than memorizing shortcuts Confidence comes from rewriting, not just reviewing 🔹 Result / Takeaway Even simple problems can expose weak spots. And that’s a good thing — because now I can fix them. 🔹 Question 🤔 Do you prefer solving problems using built-in methods or writing logic from scratch? #JavaScript #WebDevelopment #ProblemSolving #LearningJourney #Consistency #FrontendDevelopment #LearnInPublic #CodingJourney
To view or add a comment, sign in
-
🔥 90% of Websites Struggle with This One Simple JavaScript Concept Imagine you're at a restaurant, and you want to order your favorite dish. You tell the waiter what you want, and they go to the kitchen to get it. But have you ever wondered how the kitchen knows what you ordered? That's basically what an API does. In JavaScript, an API , Application Programming Interface, is like a messenger between your website and the server. It helps your website request data or services from the server, and then returns the response. Here's a simple example: Let's say you want to display the current weather on your website. You can use a weather API to fetch the current weather data and then display it on your site. For instance, you can use JavaScript's fetch API to make a request to the weather API: ```javascript fetch, 'https://lnkd.in/dTVkrKNY', .then, response = response.json, , , .then, data = console.log, data, , ; ``` This code sends a request to the weather API, and then logs the response data to the console. Did this help? Save it for later. Check if your website uses APIs effectively. #WebDevelopment #LearnToCode #JavaScript #APIs #WebDev #CodingTips #TechEducation #WebDesign #FrontendDevelopment #BackendDevelopment #FullstackDevelopment #WordPress #Coding
To view or add a comment, sign in
-
💡 Day 6 of My Web Development Journey — JavaScript Practice Some problems don’t look hard… until you actually try to solve them. Today’s challenge pushed me to think beyond just “writing code” and really focus on logic. 🔹 Problem / Struggle I worked on a problem where I had to count specific elements (like vowels or conditions) from a string. At first glance, it felt simple—but I got stuck while combining methods like split(), filter(), and includes() correctly. A small mistake completely broke the logic… and that was frustrating. 🔹 What I Learned I realized that understanding how functions return values is everything. For example: filter() expects a condition that returns true/false Even a tiny misplacement (like .length in the wrong place) can change the entire result Debugging taught me more than writing the code itself. 🔹 Result / Takeaway Today wasn’t just about solving a problem—it was about sharpening my thinking. I’m starting to see patterns, not just syntax. And slowly… JavaScript is beginning to make sense, not just noise. 🔹 Question What’s one JavaScript concept that confused you at first but later became clear? #JavaScript #WebDevelopment #ProblemSolving #LearningJourney #Consistency #FrontendDevelopment #LearnInPublic #CodingJourney
To view or add a comment, sign in
-
🚀 Web Development Journey - JavaScript Day 9 Today I stepped into one of the most important parts of JavaScript: the Document Object Model (DOM), where JavaScript truly starts interacting with web pages. Here’s what I covered: 🔹 Understanding the DOM Learned how the browser represents HTML as a structured tree (DOM Tree), making it possible to interact with elements programmatically. 🔹 Node Relationships Explored how elements are connected, parent, child, and sibling relationships, which is key for navigating the DOM effectively. 🔹 Selecting Elements Practiced different ways to target elements: getElementById getElementsByClassName getElementsByTagName querySelector() querySelectorAll() 🔹 Traversing Elements Learned how to move through the DOM using properties like: parentNode childNodes nextElementSibling previousElementSibling 🔹 Manipulating Elements Started creating and modifying elements dynamically using JavaScript (e.g., createElement). This is where things start to feel real, moving from writing logic to actually controlling what users see and interact with. Next up: Appending elements to the DOM (appendChild) 🔥 #WebDevelopment #JavaScript #100DaysOfCode #LearningInPublic #FrontendDevelopment #DOM
To view or add a comment, sign in
-
-
☕️ JavaScript: Your Daily Coffee Order, Explained in 2 Minutes Think of JavaScript like ordering your favorite coffee at a café. You tell the barista what you want—espresso, milk, a dash of cinnamon. The barista , the browser, takes that request and turns it into a steaming cup , the result on your page, . The same way a coffee order has steps, JavaScript has steps: you write a command, the browser reads it, and it produces a change. In code, the order looks like this: ``` function orderCoffee, type, milk, spice, return `$ type with $ milk and a pinch of $ spice `; console.log, orderCoffee, 'espresso', 'almond', 'cinnamon', , ; ``` When you run it, the browser prints “espresso with almond and a pinch of cinnamon.” That simple function is a coffee order in JavaScript land. 🚀 A recent LinkedIn post titled “Daily Coding Habit Boosts Web Development Skills” reminds us that practicing these small orders every day sharpens our ability to build bigger, faster sites. So start with a single line, then add a line, and watch your site grow. Did this help? Save it for later. ✅ Check if your website runs smoother after adding a tiny function like this. If it does, you’re on the right track. #WebDevelopment #LearnToCode #WordPress #CodingTips #TechEducation #WebDesign #JavaScript #React #Frontend #DailyCoding #BusinessTech #WebDev #DeveloperLife #CodeDaily #SimpleConcepts
To view or add a comment, sign in
-
🚀 JavaScript Polyfills — The “Jugaad” That Keeps the Web Running Everywhere Ever used a modern JavaScript feature… and it just didn’t work in some browsers? 😅 That’s where Polyfills come in. 💡 What is a Polyfill? A polyfill is basically a fallback implementation for a feature that your environment (browser) doesn’t support yet. 👉 Think of it like: “If the browser doesn’t know how to do this, I’ll teach it.” ⸻ 🧠 Memory Hook (You’ll never forget this) Polyfill = “Poly + Fill” → Fill the gaps in multiple environments Or even simpler: 🛠️ “Old browsers? No problem — I’ll fix it.” ⸻ 🔍 Simple Example Let’s say older browsers don’t support Array.prototype.includes You can write your own version: if (!Array.prototype.includes) { Array.prototype.includes = function(value) { return this.indexOf(value) !== -1; }; } ⚙️ Why Polyfills Matter • 🌍 Makes your code work across all browsers • 🧓 Supports legacy systems • 🚀 Lets you use modern JS features without fear #coding #javascript #interviews #frontend #backend
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
good but use conditional to convert letters into lower case before checking.if (vowels.includes(letter.toLowerCase())).