I worked on a small JavaScript exercise focused on password validation using regex and conditional logic. The function returns an object with the password and its strength level (“Weak”, “Medium”, or “Strong”). #javascript #backend #coding #learninginpublic
Marcos Cattaneo’s Post
More Relevant Posts
-
Backtracking: Combination Sum Problem Day 4 👈 Problem: - Given an array of numbers and a target value, find all unique combinations where the numbers sum up to the target. 🧠 Summary (Simple Understanding) Think of it like: "Pick a number → reduce target → try again → backtrack → try next number" This pattern helps you explore all possibilities efficiently without duplicates. #DataStructures #Algorithms #Backtracking #Recursion #TypeScript #JavaScript #CodingInterview #DSA #LeetCode #ProblemSolving #SoftwareEngineering
To view or add a comment, sign in
-
-
Generate All Unique Subsets Day 3 👈 - First, sort the array - While generating subsets, skip duplicate elements at the same recursion level - This approach uses backtracking to explore all subset possibilities while maintaining uniqueness. Key Idea Use backtracking to build subsets step by step Add the current subset (path) to the result at every step Skip duplicates using: if (i > start && nums[i] === nums[i - 1]) continue; 👉 Time Complexity: O(2ⁿ) 👉 Space Complexity: O(n) (excluding result) #Subsets #PowerSet #Combinatorics #DuplicateHandling #DFS #Backtracking #Recursion #DSA #Algorithms #Subsets #PowerSet #LeetCode #ProblemSolving #CodingInterview #JavaScript #TypeScript #Angular
To view or add a comment, sign in
-
-
📌 Learning JavaScript Form Validation Today I practiced Form Validation in JavaScript by building a simple Signup Form. I learned how to: ✅ validate input fields using input and submit events ✅ show error messages dynamically using DOM manipulation ✅ validate email format using Regex ✅ apply password rules (min 8 characters + at least one number) ✅ implement show/hide password functionality This project helped me understand real-world form validation logic in a clear way. #JavaScript #FormValidation #FrontendDevelopment #WebDevelopment #Learning #DOM #Regex
To view or add a comment, sign in
-
Still using complex RegExp for URL matching in JavaScript? There’s a cleaner way. The URLPattern API makes it easy to match routes, extract params, and validate URLs using readable patterns instead of hard-to-maintain regex. Useful for: • custom routers • analytics tracking • access control rules • microfrontend routing • extracting dynamic route params Cleaner syntax. Fewer bugs. Better readability. Worth adding to your modern JavaScript toolkit. #javascript #webdevelopment #frontenddevelopment #modernjavascript #webdevtips #softwareengineering #browserapis #codingtips #devcommunity #reactjs #microfrontend
To view or add a comment, sign in
-
-
Unique Permutations using Backtracking Day 9👈 At first glance, permutations are straightforward — but handling duplicates efficiently is where the real challenge lies. Key idea: -- Sort the array first -- Skip duplicate elements during iteration to avoid redundant permutations -- Use backtracking to explore all possible combinations. #JavaScript #TypeScript #DSA #Algorithms #Backtracking #CodingInterview #FrontendDeveloper #LearnToCode #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
Today I finally understood how JavaScript actually stores data in memory — and it changed the way I look at code. Earlier, I used to just write variables and functions without thinking much about what’s happening behind the scenes. But now it makes a lot more sense: Primitive values (like numbers, strings, booleans) are stored directly in memory Reference types (like arrays and objects) are stored differently — the variable holds a reference, not the actual value That’s why things like this behave unexpectedly sometimes: Copying objects doesn’t create a real copy Changing one reference can affect another Understanding this cleared up a lot of confusion I had while debugging. Still learning, but this felt like a small breakthrough Hitesh Choudhary Piyush Garg Chai Code #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic
To view or add a comment, sign in
-
-
Assalam o Alaikum everyone, JavaScript Lesson 31 is here: Regular Expressions (Regex). This lesson covers one of the most useful string-handling tools in JavaScript: regular expressions. I explained how to create regex patterns using both literal notation and the RegExp constructor, then showed how flags like i and g change the behavior of your patterns. I also covered common regex shortcuts such as \d, \w, \s, and ., plus character classes like [aeiou] and [0-9]. After that, I explained quantifiers like +, *, ?, and {n} so you can control how many matches are allowed. The lesson also demonstrates the most common regex methods: - test() - match() - replace() - search() - split() Finally, I explained anchors like ^ and $, and capturing groups with parentheses () using a date pattern example. This lesson is very important if you want to validate input, search text, extract data, or manipulate strings more effectively in JavaScript. Watch the lesson: https://lnkd.in/dU6SGdDR #JavaScript #Regex #RegularExpressions #JavaScriptTutorial #WebDevelopment #FrontendDevelopment #Programming #CodingTutorial #DeveloperMaroof #LearnJavaScript #JavaScriptLessons #PatternMatching #StringValidation #TextProcessing #Coding
To view or add a comment, sign in
-
-
Is it worth learning Regex for me? 🤔 Date: 12/4/2026 Today, I take a mini react challenges - Password Strength 💡 In this project real time tracking is lowercase, uppercase, number and symbols used in password filed and based upon increase progress bar. I can make this project using ASCII Code Values and if/else. 😎 But? 🤔 If I do it, then I cannot learn anything new. So, I watched Regex one shot on YouTube. 😊 And learn basic Regex, then I make this project. After make this project, I realized the power of Regex. 😎 GitHub Repo: https://lnkd.in/giWCzFJh #WebDevelopment #Regex #React #Programming #Frontend #JavaScript
To view or add a comment, sign in
-
👉 Read the full article here: https://lnkd.in/dPBDH8fZ 🚀 New Article Published: Array Flatten in JavaScript Understanding how to work with nested arrays is an important skill for every JavaScript developer. In this article, I explained: • What nested arrays are • Why flattening arrays is useful • The concept of array flattening • Different approaches (built-in methods, recursion, loops) • Common interview scenarios I also included step-by-step explanations and visual thinking to make the concept easy to understand. This topic really helped me improve my problem-solving mindset while working with real-world data structures. Big thanks to Hitesh Choudhary Sir, Piyush Garg Sir and Chai Aur Code for continuous learning and guidance 🙌 #JavaScript #WebDevelopment #Coding #LearningInPublic #Developers #Frontend #100DaysOfCode
To view or add a comment, sign in
-
-
Minimum Distance to Target Element Day 1 👈 You are given an integer array nums, an integer target, and an integer start. Your task is to find the minimum distance between the index start and any index i such that nums[i] === target. The distance between two indices i and start is defined as: |i - start| Return the minimum distance among all valid indices i. It is guaranteed that the target exists at least once in the array. Input: nums = [1, 2, 3, 4, 5] target = 5 start = 3 Output: 1 Explanation: Index of target (5) = 4 Distance = |4 - 3| = 1 #Array #LinearSearch #BruteForce #Indexing #MathLogic #100DaysOfCode #CodeNewbie #Developers #FrontendDevelopers #CodingInterview #InterviewPreparation #DSA #ProblemSolving #LearnToCode #DataStructures #Algorithms #JavaScript #TypeScript #CodingPractice
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