Skip to content

Category: Questions

How can I make rects from JSON?

I’m doing a project to learn d3 visualization and I’m stack recs aren’t appearing. Could you help me? I tried to put a simple array for data and it worked, I could only flip y, but with this JSON data. nothing works https://codepen.io/DeanWinchester88/pen/XWgjjeW Answer The issue is that XML…

Delete a row from a table using and Id React

I have this table which is created using data from my back end And its columns are made with this function I added a button which calls the deleteStudent function and sends it to my Backend but I don’t know how to pass the studentId for the specific row this is my initial state Answer Just use second pa…

Why event Event loop behaving differently in js

I was expecting the output to be 3->2->1 but instead my output is 1->3->2 Why I am getting differently? Answer The setTimeout() timings are not correct. Your parent setTimeout() method it’s set to execute after 5000 ms, then it enters the function and the first one it triggers is the one wit…

JavaScript – Classes are special Functions?

Coming from a Python background, I’ve read this, learning Javascript: Classes are in fact “special functions”, and just as you can define function expressions and function declarations, the class syntax has two components: class expressions and class declarations. on dev.mozilla website.. Wh…

Unable to make CSS animation centered

I’m working on this CSS animation from Animista which is not centered. The entry animation starts and ends not centered and the exit animation starts in the middle and slides down. Which is not how the animation is supposed to work. The animation is for a popup which gets triggered after a 1-2 seconds a…