Built an MCQs Extractor using vanilla JavaScript ! Users simply write MCQs where: • Question ends with ? • Options are separated by line breaks • Correct answer is marked with * The system automatically extracts and displays clean MCQs What I Learned: This project helped me deeply understand string operations, text parsing, Symbol-based logic (? and *) and how map with return + join is essential when generating HTML dynamically. Small project. Big learning. GitHub Repository: https://lnkd.in/dkykFcwf Live Demo (Netlify): https://lnkd.in/dZWsT2G6 #JavaScript #WebDevelopment #FrontendDevelopment #MCQsExtractor #StringMethods #MapAndJoin #LearningByDoing #CodingJourney #DevelopersHub
More Relevant Posts
-
LeetCode 739 – Daily Temperatures (Medium) Solved this problem using a monotonic stack approach. The idea is straightforward: • Traverse from right to left • Maintain a stack of indices with strictly higher temperatures • For each day, calculate how many days ahead a warmer temperature appears This reduces the brute-force approach and keeps the solution efficient at O(n) time complexity. I’m focusing on writing solutions that are easy to understand, not just ones that pass test cases. Code snippet attached 👇 #LeetCode #DSA #JavaScript #Stacks #ProblemSolving #Consistency
To view or add a comment, sign in
-
-
When One Path Isn’t Enough: Tracking All Valid Paths 🌳 Solved LeetCode 113 - Path Sum II today. Unlike Path Sum I, this version requires returning all root-to-leaf paths that match the target sum. The key shift: -Use recursion to explore paths -Maintain a current path array -Apply backtracking (push before recursion, pop after) Key takeaway: Whenever a problem asks for all combinations or all paths, think backtracking + state cleanup. This one strengthened my understanding of recursion with state management. #LeetCode #DSA #BinaryTree #Backtracking #Recursion #JavaScript #ProblemSolving #LearnInPublic
To view or add a comment, sign in
-
Loops are used to repeat actions in a program without writing the same code again and again. They’re used when something needs to run multiple times. for example: iterating over a list, retrying a request, counting values. Common types: for → when the number of iterations is known while → when a condition controls the loop do...while → runs at least once In simple terms Loops automate repetition. #JavaScript #ProgrammingBasics #DeveloperNotes #LearnToCode
To view or add a comment, sign in
-
-
Call Stack & Memory Heap — JavaScript Basics You Must Know ⚙️ Ever wondered how JavaScript actually runs your code? Two core concepts make it happen: 🧠 Memory Heap Stores variables, objects, and data dynamically during execution. 📚 Call Stack Keeps track of function calls line by line using a Last In, First Out (LIFO) rule. Understanding these helps you: - Debug errors like stack overflow - Write better recursive functions - Avoid memory leaks - Understand why JavaScript is single-threaded I wrote a beginner-friendly breakdown with examples. Check the comment 👇 #JavaScript #WebDevelopment #Frontend #Programming #LearnJavaScript #SoftwareEngineering
To view or add a comment, sign in
-
-
Day 16 of the 90-Day DSA Journey Today, I practiced Time & Space Complexity with examples. For example: A single loop → O(n) time Nested loops → O(n²) time Using extra arrays or variables increases space complexity This made it clear that: The same problem can have multiple solutions, but not all solutions scale well. Understanding complexity helps write efficient and future-proof code. Learning continues - now with optimization in mind. #Day16 #DSA #TimeComplexity #SpaceComplexity #JavaScript #Optimization #LearningInPublic #90DaysOfDSA #Consistency
To view or add a comment, sign in
-
JavaScript T-Class Refresh completed in Chai Aur Code Cohort ☕ Sometimes you don’t need new topics. You need stronger foundations. Took a proper refresh session covering the real core of JavaScript. ↪ Understanding specs and manuals ↪ Browser compatibility basics ↪ Hello World with proper code structure ↪ Strict mode and why it matters ↪ Variables and datatypes clarity ↪ Type conversion and operators ↪ Conditionals and loops logic ↪ Functions and flow control This wasn’t advanced stuff. But this is the stuff that makes everything else easier. Revisiting fundamentals always hits differently. Thanks Akash Kadlag for this amazing class.. Which core topic do you think most developers ignore too early?
To view or add a comment, sign in
-
-
Fixing an Unbalanced Tree the Systematic Way 🌳 Solved LeetCode 1382 - Balance a Binary Search Tree today. The approach was clean and systematic: -Use inorder traversal to extract nodes in sorted order -Pick the middle element as the root -Recursively build left and right subtrees This guarantees a height-balanced BST without complex rotations. Key takeaway: Sometimes the best way to fix a structure is to rebuild it with the right invariants, not patch it incrementally. This problem nicely connected traversal, sorting, and divide-and-conquer thinking. #LeetCode #DSA #BinarySearchTree #TreeTraversal #DivideAndConquer #JavaScript #ProblemSolving #LearnInPublic
To view or add a comment, sign in
-
Can you spot the bug? 👀 This screenshot shows JavaScript code reconstructed from its AST and replayed from the Utopixia network. The runtime throws a simple error: “Expression expected” The code looks fine at first glance. But a single missing detail introduced during code generation breaks execution. When you stop storing files and start storing structure, your bugs change nature. Can you see what’s wrong? 😄 PS: The code quality itself isn’t the point here. This is intentionally unstructured JavaScript generated by an LLM, used to stress-test AST parsing and code reconstruction at scale. #BuildInPublic #Developers #JavaScript #AST #DistributedSystems
To view or add a comment, sign in
-
-
🚀Day 82 of Cohort2.0 Today's class was about More on Backend with Ankur Prajapati at Sheryians Coding School In This session, we broke down REST APIs and how they enable communication between clients and servers. we learned the core REST principles, proper use of HTTP methods, status codes, and resource-based URLs, and why sloppy API design causes long-term pain. This session focused on building a clean mental model of API interaction, not just hitting endpoints. #responsiveness #responsivedesig #css #scss #html #Cohort2 #webdevelopment #Javascript #react #DOM #frontend
To view or add a comment, sign in
-
JavaScript Quiz: Hoisting vs. The Dead Zone! 💀 Think you know how variables work in JS? This snippet usually catches people off guard! 🧐 We’re comparing the "old school" var with the modern let. They might look similar, but the way the JavaScript engine treats them before the code even runs is totally different. The Question: What will be the output for line 1 and line 4? The Logic Check: -> Does var behave the same as let when called early? -> What on earth is a Temporal Dead Zone? 🖐️🛑 -> Will the code crash or just print undefined? Drop your guess below! 👇 A) undefined and undefined B) undefined and ReferenceError C) 10 and 20 D) ReferenceError and ReferenceError #JSQuiz #WebDev #CodingLife #SoftwareEngineering #JavaScriptTips #TechCommunity
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