🚀 Week 1 Project: Advanced Scientific Calculator code link below mentioned 👇 https://lnkd.in/gqVJSPwM Github link https://lnkd.in/gRq4qUJs 🚀 Week 1 Project: Advanced Scientific Calculator I built a fully functional Scientific Calculator using HTML, CSS, and JavaScript. 🔧 Key Features: • Basic arithmetic operations (+, −, ×, ÷) • Trigonometric functions (sin, cos, tan) • Degree & Radian mode support • Logarithmic functions (log, ln) • Factorial calculations (!) • Power operations (x², x³, xʸ) • Constants (π, e) • Expression-based evaluation • History tracking & keyboard support 💡 What I learned: • DOM manipulation in JavaScript • Handling complex expressions • Building real-world UI components • Improving problem-solving and logic 📈 This is part of my journey to becoming a Full Stack Developer. More projects coming every week! #FullStack #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic #Projects
More Relevant Posts
-
I've read the definition of closures probably 10 times. "A function bundled with its lexical scope." Made sense on paper. But I never truly got it until I came across the backpack analogy. Here's how it actually works: When a function is returned from a higher order function, it doesn't leave empty handed. It carries a backpack. That backpack is attached via a hidden [[scope]] link and contains persistent memory of the variables from its outer environment, even after that outer function has finished executing. The data lives on. Attached to the function. Quietly. And once I understood that, everything clicked: → once() runs a function exactly one time, then remembers it already ran → memoize() caches previous results so you never compute the same thing twice → iterators maintain position in a sequence across multiple calls → module pattern keeps variables private, exposes only what you choose → async programming lets callbacks remember the context they were created in All of these are closures in action. I've been writing JavaScript for 3 years. Going back to the fundamentals has been humbling and genuinely eye opening. If you've been skimming over closures, I'd recommend diving deep. It changes how you read code. #javascript #webdevelopment #softwareengineering #frontenddevelopment #continuouslearning
To view or add a comment, sign in
-
-
hi connections Day 29 of 30: Unlocking Type Coercion with LeetCode 2695 🚀 Today’s challenge, Array Wrapper, was a fascinating dive into the "behind-the-scenes" mechanics of JavaScript objects. It’s all about how the engine handles Type Coercion—the process of converting an object into a primitive value (like a number or string). The Concept Usually, when you try to add two objects together in JavaScript, you get a messy string result like "[object Object][object Object]". However, by using a Class and overriding specific prototype methods, we can change that behavior entirely. What I Implemented: valueOf (The Math Hook): I implemented this method to return the sum of the array. Now, when I use the addition operator (obj1 + obj2), JavaScript automatically calls valueOf and sums the numbers instead of merging strings. toString (The Display Hook): I overrode this to return a formatted string (e.g., "[1,2,3]"). This ensures that when the object is logged or converted to a string, it remains readable and useful. Why This Matters for Developers In a MERN stack environment, we often build custom classes or data models. Understanding coercion allows us to: ✅ Create more intuitive data structures. ✅ Simplify debugging by providing clear string representations of objects. ✅ Write cleaner code by allowing objects to interact naturally with mathematical operators. Only 1 day left! Tomorrow marks the completion of this 30-day coding sprint. The consistency has been the greatest reward. 💻✨ #JavaScript #LeetCode
To view or add a comment, sign in
-
-
𝗛𝗼𝘄 𝘁𝗼 𝗘𝘅𝘁𝗿𝗮𝗰𝘁 𝗖𝗼𝗹𝗼𝗿𝘀 𝗨𝘀𝗶𝗻𝗴 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 Build a color palette extractor with JavaScript. My guide shows you how. You learn: - The Canvas API. - Pixel data extraction. - Dominant color logic. Read the guide here. Source: https://lnkd.in/gAF5pKZG Optional learning community: https://lnkd.in/g39uNJJu
To view or add a comment, sign in
-
Spent way longer than I expected debugging file uploads today I was building a verification feature where users upload: • ID document • Selfie Everything looked fine… until this: Why is this not working? req.files.documentImage.path ❌ After digging, I realized I didn’t actually understand how multer structures files. Here’s what clicked: • upload.single("image") → req.file • upload.array("images") → req.files = [file1, file2] • upload.fields(...) → req.files = { documentImage: [file], selfieImage: [file] } So in my case, the correct access was: req.files.documentImage[0].path ✅ At first it didn’t make sense: “Why is it an array when I’m uploading just one file?” But it’s not about how many files you upload — it’s about the multer method you use. Another issue I hit: PDF uploads worked, but the URL returned 401 when opened. Turns out Cloudinary restricts PDF delivery by default on some setups. Solution: → switched to image-only validation for MVP These are the things tutorials don’t really explain. Still building 🚀 #buildinpublic #nodejs #backend #webdevelopment
To view or add a comment, sign in
-
-
Day 09 (Project) : Fetching Real-World Data with JavaScript! 🌐💾 I’m excited to share my latest project—a dynamic "User Data List" application built with HTML, CSS, and JavaScript! This project was a deep dive into how modern web applications communicate with external servers. Key features of this project: • 📡 Fetch API: Implemented asynchronous requests to retrieve user information from a REST API. • ⏳ Loading State: Added a "Loading..." indicator to improve user experience while data is being fetched. • 📊 Dynamic Table Generation: Used JavaScript to iterate through the retrieved data and populate a clean, organized HTML table. • 🎨 Responsive UI: Designed a simple and intuitive interface for seamless data viewing. Mastering the Fetch API is a major step in my journey toward building full-stack applications. It’s amazing to see how a few lines of code can connect a webpage to a world of data! #JavaScript #WebDevelopment #FetchAPI #CodingJourney #FrontendDeveloper #Programming #TechSkills #LearningByDoing #Amarjeet Sir Gravity Coding
To view or add a comment, sign in
-
#Day12 Map is a powerful built-in data structure that is often better than regular objects when you need to use non-string keys or maintain insertion order. In my ongoing Backend track in Mentorship for Acceleration, I learnt why Maps are such a powerful and useful data structure in modern JavaScript. While regular objects work for simple key-value storage, Maps give us more control and reliability. I practiced by creating a Phonebook contact list, and it really helped me understand how clean and efficient they are. Methods I used below : => .set () : I used this to add new contacts. => .get () : I used this to retrieve the actual value associated with a key. If the key exists, it returns the value; if not, it returns undefined. => .has () : Lastly, I used this to check if a particular key exists in the Map before trying to access it. It returns true or false, which helps prevent errors and makes the code safer. Maps also preserve insertion order and allow keys of any type. This makes them excellent for caching, session management, and building lookup tables. How often do you think a JavaScript developer needs to use maps ? #M4ACELearningChallenge #LearningInPublic #JavaScript
To view or add a comment, sign in
-
-
🚀 50 Weeks, 50 Projects – Week 6 Complete To push my development skills beyond tutorials, I'm continuing my 50 Weeks, 50 Projects challenge, where I build and ship one project every week. 🛠 Week 6 – API Lens: AI-Powered JSON Explorer Ever stared at a raw API response and had no idea what half the fields meant? That's exactly why I built this. Tech Stack: HTML · CSS · Vanilla JS · OpenRouter API (Mistral-7B, free tier) Design Style: Warm, human-first UI — cream tones, serif typography (Fraunces), and a layout that feels more like a notebook than a dev tool. Built specifically to be approachable for beginners. Functionality: 📋 Paste raw JSON or fetch any public API URL directly 🤖 AI explains every field in plain English — no docs needed 🌳 Interactive collapsible field tree with color-coded types ⏱ Unix timestamps decoded to human-readable dates automatically 🛡 Auto-detects response type: JWT, paginated list, error, REST 📋 One-click copy for JS, Python & cURL code snippets ⚡ 3-layer CORS proxy fallback — works with almost any public API Suggestions: I'd love feedback from the community! What other API patterns should I detect? Any features that would make this more useful in your daily workflow? Live URL : https://lnkd.in/dBcejh34 #50WeeksChallenge #BuildInPublic #WebDev #JavaScript #API #OpenSource #100DaysOfCode
To view or add a comment, sign in
-
-
𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗦𝗵𝗮𝗹𝗹𝗼𝘄 𝗖𝗼𝗽𝘆 𝘃𝘀 𝗗𝗲𝗲𝗽 𝗖𝗼𝗽𝘆 📦 If you’ve ever updated state and something weird happened… this might be why 👇 🔹 Shallow Copy → copies only the first level 🔹 Nested objects are still referenced (same memory) Example: ➡️ Using { ...obj } or Object.assign() 💡 Problem: Change a nested value… and you might accidentally mutate the original object 😬 🔹 Deep Copy → copies everything (all levels) 🔹 No shared references 🔹 Safe to modify without side effects Example: ➡️ structuredClone(obj) ➡️ or libraries like lodash ⚠️ The common pitfall: You think you made a copy: ➡️ { ...user } But inside: ➡️ user.address.city is STILL linked So when you update it: ❌ You mutate the original state ❌ React may not re-render correctly ❌ Bugs appear out of nowhere 🚀 Why this matters (especially in React): State should be immutable ➡️ Always create safe copies ➡️ Avoid hidden mutations ➡️ Keep updates predictable 💡 Rule of thumb: 🔹 Flat objects? → shallow copy is fine 🔹 Nested data? → consider deep copy Understanding this difference = fewer bugs + cleaner state management And yes… almost every developer gets burned by this at least once 😄 Sources: - JavaScript Mastery - w3schools.com Follow 👨💻 Enea Zani for more #javascript #reactjs #webdevelopment #frontend #programming #coding #developers #learnjavascript #softwareengineering #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Built a Sorting Visualizer from scratch! I recently developed an interactive web application to visualize how sorting algorithms work in real time. 🔍 Features: • Visual representation of array elements • Implemented Bubble Sort, Selection Sort, and Insertion Sort • Adjustable speed and array size • Pause and resume functionality • Color-coded states for better understanding 💡 This project helped me strengthen my understanding of Data Structures and asynchronous JavaScript concepts like async/await. Building this made me realize how important visualization is when learning algorithms. 🔗 GitHub Repository: [https://lnkd.in/ghfQpzGW] Next, I plan to implement Merge Sort and Quick Sort for better performance comparison. #DataStructures #Algorithms #JavaScript #WebDevelopment #DSA #Coding #LearningInPublic
To view or add a comment, sign in
-
𝗦𝗼𝗺𝗲𝘁𝗶𝗺𝗲𝘀 𝘆𝗼𝘂’𝗿𝗲 𝘄𝗮𝘁𝗰𝗵𝗶𝗻𝗴 𝗮 𝘃𝗶𝗱𝗲𝗼, 𝘆𝗼𝘂 𝗹𝗶𝗸𝗲 𝘀𝗼𝗺𝗲𝘁𝗵𝗶𝗻𝗴 𝘀𝗼𝗺𝗲𝗼𝗻𝗲’𝘀 𝘄𝗲𝗮𝗿𝗶𝗻𝗴 𝗼𝗿 𝘂𝘀𝗶𝗻𝗴, 𝗮𝗻𝗱 “𝘄𝗵𝗮𝘁 𝗶𝘀 𝘁𝗵𝗮𝘁?” 𝘁𝘂𝗿𝗻𝘀 𝗶𝗻𝘁𝗼 𝗮 𝘄𝗵𝗼𝗹𝗲 𝘀𝗶𝗱𝗲 𝗾𝘂𝗲𝘀𝘁 𝗼𝗳 𝘁𝗮𝗯𝘀 𝗮𝗻𝗱 𝗴𝘂𝗲𝘀𝘀𝗶𝗻𝗴 𝘀𝗲𝗮𝗿𝗰𝗵 𝘄𝗼𝗿𝗱𝘀.🔍 That’s the moment cropIT-Find is for: circle the thing on screen, use the crop (plus an optional short hint when it’s blurry / no logo) to build a cleaner query, and open results so you’re not starting from scratch every time. How it works (technical, simple): content overlay → crop image → OCR + image understanding → merge optional hint → build/normalize query → open search. Shipped a working version in a day. It could improve 100x with a few focused iterations. Github: https://lnkd.in/ezvkmj9p #ChromeExtension #JavaScript #SideProject #BuildInPublic #OpenSource
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