📝 JavaScript Interview Coding Task Question – Day 73 Look at this code snippet 👇 ✅ Answer & Explanation: Parent constructor Child constructor Hello from Parent Hello from Child 1️⃣ The super keyword in classes is used to call methods on the parent class. 2️⃣ In the Child class, the constructor calls super() → this triggers the Parent constructor first before accessing this. 3️⃣ When child.sayHello() is called, it uses the overridden method in Child, but inside it, super.sayHello() invokes the parent’s version. 4️⃣ The output shows how inheritance chains both constructors and methods, combining parent and child logic. ✨ Tip: 👉 Always call super() before using this in a subclass constructor. 👉 super.method() helps reuse parent logic without rewriting it. #100DaysOfCode #JavaScript #Frontend #WebDevelopment #CodingInterview #JSClasses #Inheritance #DailyCoding #LearnInPublic #kirantechnophile
Saikiran N G’s Post
More Relevant Posts
-
📝 JavaScript Interview Coding Task Question – Day 72 Look at this code snippet 👇 ✅ Answer & Explanation: 1️⃣ Object.create(proto) creates a new object whose prototype is proto. It does not call a constructor function. 2️⃣ So child.name → "Kiran" because JavaScript looks up the prototype chain (since child doesn’t have its own name). 3️⃣ After setting child.name = "Sai", the name property is now created on child itself — it shadows the prototype’s property. 4️⃣ proto.name remains "Kiran", proving that child and proto are independent objects connected by prototype inheritance. ✨ Tip: 👉 Object.create() is great for lightweight inheritance without constructors. 👉 Property lookups follow the prototype chain, but assignments always go to the current object unless explicitly modified on the prototype. #100DaysOfCode #JavaScript #Frontend #WebDevelopment #CodingInterview #JSChallenges #LearnInPublic #DailyCoding #kirantechnophile
To view or add a comment, sign in
-
-
Here the list of top programming #interview questions: Get all 232 ques & ans for free on interviewdepth.com 1. Reverse a String 2. Check if a String is a Palindrome 3. Remove Duplicates from a String 4. Find the First Non-Repeating Character 5. Count the Occurrences of Each Character 6. Reverse Words in a Sentence 7. Check if Two Strings are Anagrams 8. Find the Longest Substring Without Repeating Characters 9. Convert a String to an Integer (atoi Implementation) 10. Compress a String (Run-Length Encoding) 11. Find the Most Frequent Character 12. Find All Substrings of a Given String 13. Check if a String is a Rotation of Another String 14. Remove All White Spaces from a String 15. Check if a String is a Valid Shuffle of Two Strings 16. Convert a String to Title Case 17. Find the Longest Common Prefix 18. Convert a String to a Character Array 19. Replace Spaces with %20 (URL Encoding) 20. Convert a Sentence into an Acronym 21. Check if a String Contains Only Digits 22. Find the Number of Words in a String 23. Remove a Given Character from a String 24. Find the Shortest Word in a String 25. Find the Longest Palindromic Substring #javascript #javascriptdeveloper #reactjs #reactnative #vuejsdeveloper #angular #angulardeveloper
To view or add a comment, sign in
-
Here the list of top programming #interview questions: Get all these free on interviewdepth.com 1. Reverse a String 2. Check if a String is a Palindrome 3. Remove Duplicates from a String 4. Find the First Non-Repeating Character 5. Count the Occurrences of Each Character 6. Reverse Words in a Sentence 7. Check if Two Strings are Anagrams 8. Find the Longest Substring Without Repeating Characters 9. Convert a String to an Integer (atoi Implementation) 10. Compress a String (Run-Length Encoding) 11. Find the Most Frequent Character 12. Find All Substrings of a Given String 13. Check if a String is a Rotation of Another String 14. Remove All White Spaces from a String 15. Check if a String is a Valid Shuffle of Two Strings 16. Convert a String to Title Case 17. Find the Longest Common Prefix 18. Convert a String to a Character Array 19. Replace Spaces with %20 (URL Encoding) 20. Convert a Sentence into an Acronym 21. Check if a String Contains Only Digits 22. Find the Number of Words in a String 23. Remove a Given Character from a String 24. Find the Shortest Word in a String 25. Find the Longest Palindromic Substring #javascript #javascriptdeveloper #reactjs #reactnative #vuejsdeveloper #angular #angulardeveloper
To view or add a comment, sign in
-
Yesterday, during an interview, I was asked about JavaScript closures. Honestly, I couldn’t explain it properly at that moment. 😅 Afterwards, I took some time to explore it, write some code, and finally understood that a closure is more than just a function — it’s a function that retains access to variables from its outer scope, even after that outer function has finished executing. This small but powerful concept really helped me think more clearly in JavaScript, especially when dealing with data privacy and functional programming. 💡 Key takeaway: Professional growth isn’t just about knowing the right answers—it’s about learning. A small failure often opens the door to bigger learning opportunities. Have you practiced closures? What’s your favorite example? 📝 #JavaScript #Closure #LearningFromExperience #WebDevelopment #ContinuousLearning
To view or add a comment, sign in
-
📘 Important Built-in JavaScript Methods You Must Know JavaScript gives us a treasure of built-in methods that make coding easier, cleaner, and more efficient. In today’s post, I’ve covered some of the most powerful and commonly used JS methods that every developer should master — from arrays and strings to objects and numbers. These methods can save you lines of code, improve readability, and help you write smarter, more elegant JavaScript. 💡 If you want to go from writing code to crafting solutions — this post is for you! 💬 Which JS method do you find yourself using the most? Drop it in the comments 👇 Follow Rensith Udara Gonalagoda for more useful content #learningoftheday #900daysofcodingchallenge #JavaScript #WebDevelopment #FrontendDevelopment #CleanCode #LearnToCode #Programming #CodeBetter
To view or add a comment, sign in
-
🚀 Master JavaScript — The Language of the Web! I’ve prepared handwritten JavaScript notes to help beginners and aspiring developers learn core to advanced concepts in the simplest way possible. 📘 What’s Inside: 🔴 Introduction to JavaScript 🔴Variables, Data Types & Operators 🔴Functions, Loops & Conditional Statements 🔴Arrays, Objects & DOM Manipulation 🔴ES6 Features (Arrow Functions, Let/Const, Classes, etc.) 🔴Event Handling & Mini Projects 💡 Perfect for students, beginners, and anyone preparing for frontend or full-stack interviews. For more content follow 👉 Gyanendra Namdev If you found this helpful — ✅ Follow me for more handwritten notes on programming & development 💬 DM me if you want the full collection or topic-wise notes! Let’s grow together in tech 🌱💻 #JavaScript #FrontendDevelopment #HandwrittenNotes #WebDevelopment #LearnToCode #Developers #Coding #Programming #FullStackDevelopment
To view or add a comment, sign in
-
📘 Important Built-in JavaScript Methods You Must Know JavaScript gives us a treasure of built-in methods that make coding easier, cleaner, and more efficient. In today’s post, I’ve covered some of the most powerful and commonly used JS methods that every developer should master — from arrays and strings to objects and numbers. These methods can save you lines of code, improve readability, and help you write smarter, more elegant JavaScript. 💡 If you want to go from writing code to crafting solutions — this post is for you! 💬 Which JS method do you find yourself using the most? Drop it in the comments 👇 Follow Muhammad Nouman for more useful content #learningoftheday #900daysofcodingchallenge #JavaScript #WebDevelopment #FrontendDevelopment #CleanCode #LearnToCode #Programming #CodeBetter
To view or add a comment, sign in
-
🚀 Master Modern JavaScript — One Concept at a Time! 💻✨ JavaScript is more than just a programming language — it’s the foundation of the modern web. From closures to async/await, from hoisting to the event loop, understanding these core concepts transforms the way you write, debug, and think about code. I’ve compiled a concise yet impactful overview of Modern JavaScript Concepts — perfect for beginners aiming to strengthen their fundamentals or developers looking to refresh their knowledge. 🔍 Whether you’re building APIs, dynamic interfaces, or full-stack apps, mastering these ideas will level up your skills and confidence as a developer. 💬 Dive in, explore, and share which concept challenged or fascinated you the most! #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearnToCode #Programming #TechCommunity #AsyncAwait #Closures #EventLoop #DeveloperGrowth #CodeNewbie #SoftwareDevelopment #ES6 #ReactJS #FullStackDevelopment
To view or add a comment, sign in
-
💻✨ JavaScript Function Practice – Task Completed! This week, I focused on improving my function-building skills in JavaScript through hands-on coding challenges. Each task helped me apply logic, handle edge cases, and write cleaner, reusable code. Here’s what I worked on 👇 🟢 1. Greeting Function greetUser(name, times) — Greets a user multiple times and shows a warning if the count is invalid. 🟢 2. Rectangle Area & Perimeter calcRectangle(width, height) — Returns both area and perimeter of a rectangle, with error handling for invalid dimensions. 🟢 3. Flexible String Repeater repeatString(str, count, separator) — Builds a repeated string with a custom or default separator. 🟢 4. Parameterized Filter Function filterByLength(wordList, minLen, maxLen) — Filters an array of strings based on minimum and maximum word lengths, automatically swapping limits if needed. 🟢 5. Parameterized Calculator Function calculate(a, b, operation) — Performs add, subtract, multiply, or divide operations with smart error handling for zero division or invalid inputs. Each task strengthened my understanding of: ✅ Function parameters & return values ✅ Error handling & validation ✅ Logical problem-solving 💬 Excited to keep practicing and building more JavaScript-based utilities! #JavaScript #CodingPractice #WebDevelopment #ProblemSolving #LearnToCode #Functions #DeveloperJourney #JS #Coding #Coding #10000coders #spandanachowdary #MeghanaM
To view or add a comment, sign in
-
🚀 Day 796 of #800DaysOfCode ⚙️ Parallel Programming in JavaScript — Interview Deep Dive Ever faced a question in an interview that goes like — “Can JavaScript do parallel programming?” 🤔 In today’s post, I’ve broken down this tricky interview topic in the simplest way possible. You’ll learn how parallel programming actually works in JS, what makes it different from concurrency, and how it can be achieved efficiently. Whether you’re preparing for your next frontend interview or just strengthening your fundamentals — this post is a must-read! 💪 💬 Have you ever been asked this question in an interview? How did you answer it? Let me know in the comments 👇 #Day796 #800DaysOfCode #JavaScript #FrontendDevelopment #WebDevelopment #CodingCommunity #InterviewPrep #AsyncJS #ParallelProgramming #TechInterview
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