Practiced some core JavaScript basics today using problems from GeeksforGeeks: • Odd & even count • Average of array • Palindrome check • Vowel count • Perfect square check • Max in matrix • Sum of digits Focused on understanding the logic and trying different approaches. Source:https://lnkd.in/dttvtZdp #JavaScript #Coding #Learning
Practiced JavaScript basics with GeeksforGeeks problems
More Relevant Posts
-
Async JavaScript is easier to understand when you stop thinking about “parallel code.” JavaScript still runs on a single main thread. What makes it feel non-blocking is the event loop, callback queue, and browser/runtime APIs working together. That is why setTimeout, fetch, and promises do not pause everything else. The big idea: async code gets scheduled first, then runs when the stack is ready. This infographic breaks that flow into the exact pieces that matter. Which JavaScript topic should I simplify next? #JavaScript #AsyncJavaScript #EventLoop #WebDevelopment #FrontendDevelopment #Programming #Promises #AsyncAwait
To view or add a comment, sign in
-
-
🚀 Level Up Your JavaScript Skills with 10 Powerful One‑Liners! Whether you're optimizing your workflow, cleaning up code, or just love writing elegant snippets, these JavaScript one‑liners can save you time and boost your productivity. From array manipulation to generating random numbers — a few lines can do a lot more than you think! ✨ 💡 Perfect for beginners exploring modern JavaScript and pros who enjoy writing clean, efficient code. #JavaScript #WebDevelopment #FrontendDevelopment #Coding #Programming
To view or add a comment, sign in
-
-
A few months ago I published a new tutorial on Short-Circuit Evaluation in JavaScript ⚡️ If you've ever used the && operator without fully understanding how it actually works then this one is for you. I break it down in a simple way with practical examples so you can write cleaner, more efficient code. #JavaScript #WebDevelopment #FrontendDevelopment #Programming #LearnToCode #JSBasics #TechEducation
Short-Circuit Evaluation Simplified || JavaScript && Operator Explained || Zahidul Haque
https://www.youtube.com/
To view or add a comment, sign in
-
Why does this print 4 4 4 4 in JavaScript? 🤯 A small setTimeout() + var question that teaches a big concept: closures, scope, and async behavior. When you understand why it happens, JavaScript starts making much more sense. #JavaScript #WebDevelopment #Programming #Coding #FrontendDevelopment #SoftwareEngineering #Developer #TechCommunity #LearnToCode #AsyncJavaScript #Closures #SetTimeout #100DaysOfCode #CodingTips #JavaScriptDeveloper
To view or add a comment, sign in
-
-
DOM Manipulation Challenge: Are you doing it WRONG? Let's test your JavaScript logic! 🧠 Look at the code in the image. We added click listeners to 1,000 items. Then, we added a brand new item to the list. Question: When you click that NEW item, what happens in the console? A) "Item clicked!" B) Nothing at all C) Error If you guessed B, you're right! This is why "Event Delegation" is a senior-level skill every developer needs to master. It saves memory and handles new items automatically. 💻✨ Tell me your answer in the comments! 👇 Hashtags: #JavaScript #CodingQuiz #WebDev #100DaysOfCode #LearnToCode #CodeWithSarir #FrontendDevelopment #ProgrammingTips #JSLogic #codinglife #programmer
To view or add a comment, sign in
-
-
📚 JavaScript: Array vs Object 💡 Many beginners get confused between Array and Object in JavaScript. But the difference is actually very simple 👇 ✅ Array • Used to store a list of items • Values are ordered • Access items by index like 0, 1, 2 Example: ["Apple", "Mango", "Banana"] ✅ Object • Used to store key-value pairs • Best for structured data • Access values by key Example: { name: "John", age: 25 } 👉 Use Array when you need a list. 👉 Use Object when you need data with labels. Understanding this basic concept makes JavaScript much easier to learn 🚀 #JavaScript #WebDevelopment #Programming #FrontendDevelopment #Coding #ReactJS #LearnJavaScript #Developer #TechCommunity #100DaysOfCode
To view or add a comment, sign in
-
-
#Day15 Mastering Callbacks in JavaScript Today let’s talk on Callbacks a core concept for handling asynchronous operations in JavaScript. At Mentorship for Acceleration for backend track, I explored how callbacks allow functions to execute after tasks like timers, events, or API responses complete. I also saw firsthand why they can lead to “Callback Hell” if not managed well. Key Concepts Practiced: => Basic callback implementation with setTimeout() => Using callbacks with array methods (.map(), .forEach(), .filter()) => Named vs anonymous callback functions => Understanding the limitations of nested callbacks Callbacks have sharpened my understanding of asynchronous programming and prepared me for cleaner patterns like Promises. Progressing steadily! #M4ACELearningChallenge #LearningInPublic #JavaScript
To view or add a comment, sign in
-
-
JavaScript is single threaded, but handles async operations so smoothly 👇 That’s where the Event Loop comes in. At first, things seem simple: • Code runs line by line But then you see behavior like this: Even with 0ms, the timeout doesn’t run immediately. Because JavaScript uses: ✔ Call Stack ✔ Web APIs ✔ Callback Queue ✔ Event Loop Understanding this changed how I think about async code and debugging. Sometimes the delay isn’t about time, it’s about how the event loop schedules execution. #JavaScript #EventLoop #AsyncJavaScript #FrontendDevelopment #Programming
To view or add a comment, sign in
-
-
JavaScript can surprise you! What will this return? console.log([] == ![]) Most people guess - false But the answer is - true Why? Because JavaScript silently converts types behind the scenes. Lesson: Always understand type coercion — or use === to avoid surprises. #JavaScript #Coding #WebDevelopment #LearnToCode
To view or add a comment, sign in
More from this author
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