Day 75 of #100DaysOfCode – Working with Local Storage in JavaScript Today I explored Local Storage and how browsers can store data locally to persist information even after refreshing the page. What I Learned & Implemented: Storing data using localStorage.setItem() Retrieving data using localStorage.getItem() Removing specific items with removeItem() Clearing all stored data using clear() Storing objects in Local Storage using JSON.stringify() Retrieving and converting them back using JSON.parse() Key Takeaway: Local Storage is useful for storing small amounts of persistent data like user preferences, tokens, or session-like information on the client side. Understanding how to convert objects into strings and back makes it much more powerful for real applications. Grateful to Sarthak Sharma from Sheryians Coding School and Sheryians Coding School Community for setting the foundation right before jumping into React Every small concept like this adds another tool to the frontend toolbox. #100DaysOfCode #JavaScript #WebDevelopment #FrontendDevelopment #LocalStorage #CodingJourney #BuildInPublic
JavaScript Local Storage Essentials for Frontend Development
More Relevant Posts
-
Building Subsets on Day 226 Today Today is day 226 of my coding journey and I focused on solving the Power Set problem using JavaScript. This involves finding every possible combination of elements from a given array including the empty set. I used the Backtracking technique to explore all paths. The logic starts with an empty array and then adds elements one by one. After exploring a specific path I used the pop method to remove the last element. This is the unchoose step that allows the code to go back and try a different number. One important thing I practiced today is how to use the spread operator to create a copy of the current path before adding it to the result. This ensures that the final list contains the correct values instead of just references to an empty array. Understanding how recursion builds a state space tree makes solving these types of problems much clearer. I solved this LeetCode question today: LeetCode 78 Subsets #DSAinJavaScript #365daysOfCoding #JavaScriptLogic #LeetCode #BacktrackingAlgorithms #Recursion #ProblemSolving #CodingChallenge #WebDevelopment #SoftwareEngineering #DataStructures #LogicBuilding #TechLearning #JSAlgorithms #SoftwareDevelopment #CodingSkills #DailyCoding #ArrayManipulation #FullStackDeveloper #ProgrammingJourney
To view or add a comment, sign in
-
Midweek NextPath Mag post, contributed by the Javascript diva Peter Skinner about one of the most vital, yet terrible, constructs in programming. And no, it's not npm ;) https://lnkd.in/enuEiP_m
To view or add a comment, sign in
-
Building on the basics of JavaScript, I’ve gained a solid understanding of how core components build a functional system. Writing code is the heart of this process, and seeing these concepts integrate is a major highlight of my learning. I have been practicing variable assignments using let, const, and var, while using typeof to identify different data types. I also learnt how to structure Control Flow through if/else statements, switch cases, and comparison operators. By using logical operators—specifically AND (&&) and OR (||)—along with strict equality (===), I can now set multiple rules for my code. I understand how to ensure that if a primary condition isn't met, the "else" logic applies correctly so the program follows a specific path. I also learnt how to use for loops combined with the .length property. This allows the code to automatically track the number of characters or items in a dataset. Instead of hard-coding values, I can now write dynamic code that adjusts to the data it receives. I am still working through the fundamentals, and I am excited to see how everything will work together once the foundation is complete! #JavaScript #WebDevelopment #CodingJourney #SoftwareEngineering #Techcrush #Frontend
To view or add a comment, sign in
-
-
🚀 Day 16 of #100DaysOfCode Today I started the JavaScript section from The Odin Project. 💡 Focus: Variables & Operators At first, it looks simple… but I realized something powerful: 👉 Variables are like “containers of logic” — they store the state of your program 👉 Operators are the “decision makers” — they control how data transforms ⚡ Key things I explored: • let vs const (when to use what) • Primitive data types • Arithmetic & comparison operators • Writing clean and predictable expressions 🧠 Realization: Even the most advanced applications depend on these basics. If I master this deeply, I can build anything. GitHub repo : https://lnkd.in/g6BsNMZw 🎯 Goal: Not just to learn JavaScript… but to think like a developer. Consistency > Motivation #JavaScript #WebDevelopment #CodingJourney #TheOdinProject #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 5/100 — #100DaysOfCode Today was all about strengthening my JavaScript fundamentals 💻 Instead of rushing ahead, I took time to revise the core concepts that form the backbone of programming. 📚 What I revised: 🧠 Core Concepts • Variables & Declarations • Data Types & JavaScript Type System ⚡ Logic Building • Operators • Control Flow (if-else, conditions) 🔁 Iteration • Loops (for, while) ⚙️ Functions • Writing reusable and structured code 📦 Data Structures • Arrays — handling collections of data • Objects — organizing data in key-value form 💡 Key Insight: Strong fundamentals make complex problems easier to solve. 🔥 Day 5 complete. Staying consistent and building step by step. #JavaScript #WebDevelopment #CodingJourney #BuildInPublic #Consistency
To view or add a comment, sign in
-
-
Sharing beginner-friendly notes on Advanced Functions in JavaScript 🧠 Covered two of the most important concepts every JS developer needs to master, Closures and Higher-Order Functions. The guide walks through how closures "remember" their lexical scope, enabling data privacy, memoization, and function factories. Also explored essential Higher-Order Functions like map, filter, reduce, and practical utilities like debounce, throttle, curry, and compose with clear examples and visual diagrams. A practical guide for understanding how functions truly work under the hood. Feedback and suggestions are welcome! #JavaScript #Coding #Learning #Programming
To view or add a comment, sign in
-
DAY 3 📌 LeetCode Problems Solved: Q1. Shortest Impossible Sequence of Rolls — Hard Q2. Number of Flowers in Full Bloom — Hard Q3. Minimum Number of Seconds to Make Mountain Height Zero — Medium Q4. Count Subarrays With Cost Less Than or Equal to K — Medium 📌 JavaScript Learning: Practiced writing more optimized JavaScript code, especially while working with forms. Learned how forms interact with the backend and how data flows between client and server. Built a Tic-Tac-Toe game to strengthen logic and DOM manipulation. Created a dynamic question generator to practice dynamic rendering and user interaction.
To view or add a comment, sign in
-
Day 15 of learning to code. Today I explored arrow functions in JavaScript, and honestly, they make things feel much simpler. Earlier, I used to write functions like this: function add(a, b) { return a + b; } Now with arrow functions, it becomes: const add = (a, b) => a + b; Same output, but the code feels shorter and cleaner. I also noticed that arrow functions are really useful when dealing with small tasks, especially while working with arrays. For example: const numbers = [1, 2, 3]; numbers.forEach(num => console.log(num)); It just feels more natural to read and write. One small but important realization today: Writing better code doesn’t mean writing more code. It means writing it in a simpler, clearer, and more efficient way. Day 15 done #Day15 #LearningToCode #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #40DaysOfCode #DeveloperLife #Programming #CodeNewbie #JavaScriptDeveloper #LearnInPublic #CodingLife #TechJourney #BuildInPublic
To view or add a comment, sign in
-
🚀 Day 8 of My Coding Journey Today I explored some important Advanced JavaScript concepts that help write cleaner and more efficient code. 📚 Topics I studied today: • Closures – understanding how functions can remember variables from their outer scope • Object Destructuring – extracting values from objects in a cleaner and more readable way • Deep Copy – learning the difference between shallow copy and deep copy when working with objects • Rest Operator (...) – handling multiple values and working with flexible function parameters These concepts are very powerful in JavaScript and are widely used in modern development to make code more concise and maintainable. Every day I'm trying to strengthen my JavaScript fundamentals and move one step closer to becoming a better developer. 💻 Consistency and small improvements every day are the real keys to growth. #Day8 #JavaScript #AdvancedJavaScript #Closures #Destructuring #RestOperator #WebDevelopment #CodingJourney #kodex
To view or add a comment, sign in
-
-
🚀 Day 25 of My JavaScript Learning Journey Today I learned how to Join Two Arrays by ID in JavaScript. Sometimes we have two different arrays of objects, and we need to merge their data using a common key like ****id. This is similar to how database joins work. ✨ What I learned today: ✅ Combining two arrays using a common id ✅ Using Map for efficient data lookup ✅ Merging objects with the spread operator ✅ Handling structured data effectively Techniques like this are very useful when working with APIs, databases, and real-world datasets 🚀 #Day25 #JavaScript #WebDevelopment #CodingJourney #LearningInPublic #coddy
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