2,524,876 questions
0
votes
1
answer
25
views
Firefox inserts random whitespace on position: sticky
I have an issue that occurs only in Firefox.
On my page there is a header and a product list. The header list has some sticky components to keep it in view on the page, as the user scrolls through the ...
0
votes
1
answer
27
views
Megajs 0.17.2 root property broken
Im using megaJS 0.17.2 in my nodeJS program, but it seems like the root object is not being added to the storage (megaDB) object as a property, as seen in the following code clip of my initMega() ...
Advice
0
votes
0
replies
46
views
Is GATE - MTech CSE the only option for a Tier 3 College(India) Guy with 1.5 YOE to get a high paying job in tech?
I am a Btech cse graduate of 2024 Batch from a Tier-3 College(State University - University Department). I have 1.5 years as professional experience in Full Stack Development using React.js and Nodejs....
-1
votes
0
answers
56
views
Cart functionality in reactjs
I recently started a ecommerce project in which i am trying to add a cart functionality that goes something like this :
function addToCart(item) {
console.log(item.Prname);
setCart(...
0
votes
1
answer
104
views
Why does `Object.groupBy()` return an object where `hasOwnProperty` is not a function?
I've been diving into the JS Object API, trying to learn it a bit more, and I found something I did not really expect for how groupBy() functions. Here's a little example:
const people = [
{ name: ...
-3
votes
0
answers
53
views
create-react-app auto refresh page on code change in production
I have an issue where when I restart and update my production server, users need to refresh the page manually in order to make use of the code changes. This means users who do not know to do this are ...
-3
votes
2
answers
58
views
How can I get Javascript to run through a list of predefined responses, in order?
I'm trying to create a setup where a user can talk to a chatbot, and the chatbot will run through a predetermined list of responses in consecutive order. The bot will respond each time the user gives ...
Best practices
1
vote
3
replies
39
views
What is an example of a real and valid reason to create a circular dependency - javascript / other
There is a project at work, a complete rebuild of a codebase that had become very large and difficult... This is not about opinions on that topic.
So the new code base is ~1 years old. I am not the ...
0
votes
0
answers
52
views
The content on my second tab is not showing up (javascript) [closed]
I'm really new to coding and I'm trying to make tabs for showing two different galleries. The first tab is working just fine, but when I click the second one nothing shows up. We're "in it" ...
Advice
1
vote
22
replies
124
views
How can I deal with this javascript variables problem?
I have a quiz with 5 questions with a couple of answers you can choose from each, it's always single choice, so you will have 5 variables in the end, one per question q1="",q2="", ....
Advice
1
vote
14
replies
93
views
How should I share, save and combine JavaScript variables across HTML sites?
I am passionate about writing a personality/psychology/dating website. I know how to use variables a bit, but I don't know which is the best way to store them. There are cookies, sessionstorage and ...
-1
votes
0
answers
54
views
MasterGain isn't disconnecting
I'm making a website where I put the songs I make, and I'm running into an issue.
I have a function to turn an audio link (will be replaced with a file at some point, irrelevant) into an audio using ...
Best practices
0
votes
3
replies
51
views
Setting up posts alphabetically within a tag
I would like to be able to set my website so that all posts are sorted in alphabetical order. However, I also have these posts separated by tags, so basically if you click a tag it will only show you ...
1
vote
1
answer
55
views
How to animate icon change between menu and close using CSS?
I am working on a navigation toggle button for a website and I want to switch between two Material Design icons, menu and close, when the user clicks the button. Currently, the icon changes instantly ...
Advice
0
votes
7
replies
117
views
Looking for guidance on this journey
So I've been getting into coding, developing, programming, you name it for like the past year. At first I learned a little bit about C for a few months, learned the fundamentals but not all. Then ...