Skip to content

Category: Questions

Post a form in Node Js

I am trying to post data from a form in node JS and then see the data in console. When i click the button I can see the data in console but the websites starts loading and it doesnt end. The loading circle doesnt stop moving. and this is in my server.js file Answer Your backend has to send a

scrollIntoView() looping element on puppeteer

I want to scrape a list of posts while the page scroll is infinite loading. I want scrollIntoView() for each element in the loop. my code is temporarily like this and the result when the page is loaded, it bounces out but no error. For example, I want to take 20 posts and then the scraper will take the posts

Does “undefined” occupy memory in javascript?

In this situation var foo; Will “foo” point to somewhere in the memory that contains the value undefined? Does undefined occupy memory in javascript? Does undefined mean that there is no memory address assigned to a specific label? Answer There’s two parts to your question. The variable itse…

React Constants inside a Function

I need help to export the constants. I am getting different errors when i try to search for this on google or other related topics at stackoverflow. This is my Printer.jsx I need to add the const connect to the App.js so that if the App is starting the connection is also starting. The second is that i need to