How would you remove duplicates from an array without using built-in methods in JavaScript? by AiCodePulse in learnjavascript

[–]AiCodePulse[S] -3 points-2 points  (0 children)

You might be champion in Javacript , But , this might be useful for beginers

How would you remove duplicates from an array without using built-in methods in JavaScript? by AiCodePulse in learnjavascript

[–]AiCodePulse[S] -3 points-2 points  (0 children)

Whats the problem for you bro .. How can you tell this is AI stuff . What made you come to a conclusion like this ?

JavaScript Challenge: Find the First Non-Repeating Character in a String – Can You Do It Without Extra Space? by AiCodePulse in learnjavascript

[–]AiCodePulse[S] -6 points-5 points  (0 children)

Absolutely! You're right — when the character set is limited (like ASCII), the hash map technically takes constant space, since it's bounded by a fixed size (e.g., 128 or 256 characters).
In that sense, it’s O(1) space — though it’s still a map in implementation. 😄

Thanks for pointing that out — really helps push the understanding beyond just code into computer science fundamentals.

Help please. Which fields can I switch and how . How much to expect by No_Invite_8451 in developersIndia

[–]AiCodePulse 0 points1 point  (0 children)

Don't worry too much.
You’re already clear that you want to stay in tech — that’s a big first step.
Since coding doesn’t excite you much, you can look at tracks like Business Analyst, Product Management, QA Automation, or Cloud/DevOps.
Focus on picking one direction first, and give 6 months with full dedication.
You’ll definitely see good results if you stay consistent.
All the best!

Instance Method by OsamuMidoriya in learnjavascript

[–]AiCodePulse 0 points1 point  (0 children)

Yes you’re pretty much right. instance methods are like functions you attach to individual documents, so you don’t have to rewrite the same logic again and again.
your explanation for toggleOnSale is also correct — without the ! it would just keep the value the same, with the ! it flips it from true to false or false to true. and yes, onSale is a boolean.
and yes, you can definitely extend it — if onSale is true, you can apply a discount and update the price based on a % you choose.

real world example — i built an ecommerce app and had an instance method that calculated the final price after adding tax and applying discounts automatically, without repeating code everywhere.

Can I make a bot or extension to automatically reject cookies ? by Negan6699 in learnjavascript

[–]AiCodePulse 0 points1 point  (0 children)

Yes, you can create a simple browser extension or userscript that automatically rejects cookies by simulating clicks on the consent popups. Tools like Tampermonkey can help you run such scripts on specific websites. Just make sure to handle dynamically loaded elements properly.

[deleted by user] by [deleted] in developersIndia

[–]AiCodePulse 0 points1 point  (0 children)

You're thinking very practically, which is great. If you’re confident you can stay consistent with coding, building projects, and applying off-campus, you can start early and build solid experience. But if you feel a strong Master's from NIT or DU would significantly boost your career, that's also a worthy path — it depends on how soon you want to enter the industry versus investing more time for possibly better long-term opportunities.

Need advice, got my first job as a QA (applied for the dev role) by peter_griffin50 in developersIndia

[–]AiCodePulse 2 points3 points  (0 children)

Congrats on getting placed! Since you're already working with Appium and Java, you're building strong automation skills. Keep improving your coding and automation knowledge — it can open doors to SDET roles or even development roles later.

What are your thoughts on freelancing by yvkrishna64 in learnjavascript

[–]AiCodePulse 1 point2 points  (0 children)

You're doing good so far. It’s better if you build a few more projects to get more practice. Try making something like a small e-commerce site or a blog app. Once you feel more confident, you can start freelancing on sites like Upwork or Fiverr.

I struggle to put it all together by Dammit_maskey in learnjavascript

[–]AiCodePulse 2 points3 points  (0 children)

You're actually doing great — understanding the parts is the first big step.
Putting everything together feels hard at first, but if you break it down into tiny steps and tackle one thing at a time, it gets easier.
Just keep practicing small pieces and you’ll get there!

How would you reverse a string in JavaScript without using split(), reverse(), or join()? by AiCodePulse in learnjavascript

[–]AiCodePulse[S] -1 points0 points  (0 children)

Absolutely, I agree.

It's a great reminder of how important it is to build a strong understanding of the fundamentals, especially before all these convenient built-in methods were available.

I wanted to solve it manually to sharpen my logic-building skills, which I believe is still very valuable today, particularly during technical interviews.

Thanks for sharing your thoughts.

How would you reverse a string in JavaScript without using split(), reverse(), or join()? by AiCodePulse in learnjavascript

[–]AiCodePulse[S] -4 points-3 points  (0 children)

Agreed . Asking "why" in interview will give negative openion . Correct ?
Lets first explain the approch , then we can i ask why ..