🚀 Day 6 | Day 25 of Learning JavaScript Today, I explored JavaScript String Methods — understanding how strings are handled in JavaScript and how built-in methods help manipulate text data efficiently. Step by step, I’m strengthening my fundamentals and writing cleaner code. 🔹 Learned what strings are and how they work in JavaScript 🔹 Explored commonly used string methods like: • length • charAt() • toUpperCase() / toLowerCase() • indexOf() / lastIndexOf() • slice() / substring() • replace() • split() • trim() 🔹 Understood string immutability and why original strings don’t change 🔹 Practiced real-time examples for better understanding 🔹 Continued building consistency and problem-solving skills 📌 One step at a time. Consistency > speed 🚀 🔖 Hashtags #JavaScript #StringMethods #ES6 #WebDevelopment #FrontendDeveloper #LearningInPublic #CodingJourney #25DaysOfCode
More Relevant Posts
-
Today’s learning: **Closures in JavaScript**. A closure is created when a function remembers its lexical environment, even after the outer function has finished execution. This is why a function can still access variables from its original scope, even when it’s executed somewhere else. Closures are widely used for things like data hiding, memoization, and async code and understanding them really changes how you think about JavaScript execution. I wrote a short doc and pushed it to GitHub for future reference: 👉 https://lnkd.in/dT-BVvEN Please do read and let me know if I missed anything, happy to improve it. #JavaScript #WebDevelopment #LearningInPublic #NamasteJavaScript
To view or add a comment, sign in
-
-
JavaScript Algorithm Practice: Generating Prime Numbers Today, I worked on a classic algorithm problem in JavaScript: generating prime numbers up to a given limit. 🔹 Step 1: Create a helper function isPrime(n) It checks whether a number is prime by testing divisibility up to √n, which improves performance. 🔹 Step 2: Use this helper to build generatePrimes(number) This function loops from 2 up to the given number and collects all prime numbers. 📌 Key takeaways Breaking a problem into small reusable functions Optimizing loops using mathematical insights (√n) Writing clean and readable code I’m consistently practicing JavaScript fundamentals and algorithms to strengthen my problem-solving skills. 👉 Check out more JavaScript exercises here: 🔗 https://lnkd.in/ej4fNeZs #JavaScript #Algorithms #ProblemSolving #CodingPractice #WebDevelopment #LearningInPublic #GitHub
To view or add a comment, sign in
-
-
✨ Exploring JavaScript Basics: Variable Declaration Syntax ✨ Today, I shared a set of slides that break down my understanding of why JavaScript and how variables are declared in JavaScript. As someone transitioning into full-stack development, I believe documenting these fundamentals not only strengthens my own grasp but also helps others who are starting their coding journey. 🔑 Key Highlights from the Slides: ▪️ The three main ways to declare variables: a) var b) let c) const ▪️ Syntax examples with simple code snippets. 📚 Takeaway: Understanding variable declaration is the foundation of writing reliable JavaScript. Getting this right sets the stage for mastering more advanced concepts like scope, closures, and memory management. 💬 Curious to know: Which keyword do you use most often in your projects-var, let or const? #JavaScript #WebDevelopment #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
🚀 Day 874 of #900DaysOfCode ✨ Mastering Strings in JavaScript Strings are one of the most used data types in JavaScript — and knowing how to work with them efficiently can instantly boost your coding speed and confidence. In today’s post, I’ve covered 12 essential string methods that every JavaScript developer should know. Explained in a simple, clear, and beginner-friendly way so you can quickly understand how each method works and where to use it in real projects. If you want to level up your JS fundamentals and write cleaner, smarter code, this post is definitely for you. 👇 Which string method do you use the most? Share below! #Day874 #learningoftheday #900daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #CodingCommunity #StringMethods
To view or add a comment, sign in
-
JavaScript array methods play a crucial role in writing clean, readable, and efficient code. Methods like map(), filter(), and reduce() are commonly used to transform, filter, and process data in real-world applications. Mastering these methods significantly improves your problem-solving skills in JavaScript. I teach JavaScript concepts daily and apply them through hands-on projects on my YouTube channel, Code Hunter Sharath. 🎥 Playlist: 52 Weeks • 52 JavaScript Projects 👍 Follow for daily JavaScript concepts 🔔 Subscribe to learn by building #JavaScript #LearnJavaScript #WebDevelopment #FrontendDeveloper #Coding
To view or add a comment, sign in
-
-
𝗗𝗮𝘆 𝟮𝟴 𝗼𝗳 𝗺𝘆 𝗪𝗲𝗯 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗺𝗲𝗻𝘁 𝗷𝗼𝘂𝗿𝗻𝗲𝘆 Today I learned about truthy and falsy values in JavaScript. I explored how different data types behave when they are converted into Boolean values. Instead of always being true or false, JavaScript decides based on the value itself. I learned that there are only a few datatypes when we convert it into boolean it gives us falsy values: • 𝟬 -> 𝗙𝗮𝗹𝘀𝗲 • 𝗘𝗺𝗽𝘁𝘆 𝘀𝘁𝗿𝗶𝗻𝗴 "" ->𝗙𝗮𝗹𝘀𝗲 • 𝗨𝗻𝗱𝗲𝗳𝗶𝗻𝗲𝗱 ->𝗙𝗮𝗹𝘀𝗲 • 𝗡𝘂𝗹𝗹 ->𝗙𝗮𝗹𝘀𝗲 • 𝗡𝗮𝗡 ->𝗙𝗮𝗹𝘀𝗲 Everything else is considered truthy. At first this felt a little confusing, but practicing small examples helped me understand why some conditions run and others don’t, especially inside if–else statements. This topic made me more careful while writing conditions and checking values in my code. Learning one concept at a time and slowly building my understanding. Did truthy and falsy values confuse you when you first learned JavaScript? #Day28 #WebDevelopment #JavaScript #LearningJourney
To view or add a comment, sign in
-
-
✨ Understanding var, let, and const in JavaScript ✨ One of the first hurdles for beginners in JavaScript is figuring out when to use var, let, or const. While they all declare variables, the differences matter for clean, bug-free code: 🔹var – Function-scoped, allows redeclaration, and can lead to unexpected behavior due to hoisting. Best avoided in modern code. 🔹 let – Block-scoped, can be updated but not redeclared in the same scope. Ideal for variables whose values change over time. 🔹 const – Block-scoped, must be initialized at declaration, and cannot be reassigned. Perfect for constants or values that should remain fixed. Mastering these keywords is a small step that makes a big difference in writing clean, predictable, and modern JavaScript🚀 #JavaScript #WebDevelopment #FrontendDevelopment #CodingTips #LearnToCode #CleanCode #DeveloperLife #TechCommunity
To view or add a comment, sign in
-
JavaScript Variables are used to store data. In modern JavaScript, you should mainly use: ✅ let – when the value can change ✅ const – when the value should stay fixed ❌ Avoid using var because of scope issues. Understanding variables clearly is the foundation for writing clean and bug-free JavaScript code. I explain JavaScript concepts daily and apply them using real projects on my YouTube channel “Code Hunter Sharath”. 🎥 Playlist: 52 Weeks • 52 JavaScript Projects 👍 Follow me for daily JavaScript concepts 🔔 Subscribe to learn by building https://lnkd.in/gq6r6-8b #JavaScript #LearnJavaScript #WebDevelopment #FrontendDeveloper #Coding #Day2of30DaysConcept
To view or add a comment, sign in
-
-
𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭 – 𝐏𝐚𝐫𝐭 𝟔 Hey everyone! I’m sharing the next part of the notes that I prepared when I was learning JavaScript. In these notes, I’ve explained everything in the easiest way possible. 𝗧𝗵𝗶𝘀 𝗽𝗮𝗿𝘁 𝗰𝗼𝘃𝗲𝗿𝘀: Variable Scope Hoisting 𝘄𝗵𝗮𝘁 𝗶𝘀 𝗮 𝗧𝗲𝗺𝗽𝗼𝗿𝗮𝗹 𝗗𝗲𝗮𝗱 𝗭𝗼𝗻𝗲 (𝗧𝗗𝗭)? The time between entering the scope and variable initialization is called the Temporal Dead Zone (TDZ). 𝘄𝗵𝗮𝘁 𝗶𝘀 𝗮 𝗦𝗰𝗼𝗽𝗲 𝗖𝗵𝗮𝗶𝗻? JavaScript uses a scope chain to resolve variables. If a variable is not found in the current scope, JavaScript looks for it in the outer scope, continuing until the global scope. Putting these notes out there to help anyone revising or strengthening their JS fundamentals. 𝗣𝗿𝗲𝘃𝗶𝗼𝘂𝘀 𝗣𝗮𝗿𝘁𝘀 Part 1: Js Fundamentals Link: https://lnkd.in/gZdba3ga Part 2: Js Operators Link: https://lnkd.in/gUYuHXSb Part 3: Js Conditional Statements Link: https://lnkd.in/gWTfwkBr Part 4: Loops Link: https://lnkd.in/gUjuB5eY Part 5: Functions Link: https://lnkd.in/gQZadrza Hope this helps Feel free to share with your friends, and please comment your suggestions or doubts. #javascript #webdevelopment #programming #developers #learningbysharing #tech #learninpublic #cse #learninpublic
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