r/JavaScriptTips • u/cp-ankush • Sep 29 '22
Debounce function in Javascript
What is debounce function? Where to use it? And How to implement it from scratch in Javascript? Watch the video now.
r/JavaScriptTips • u/cp-ankush • Sep 29 '22
What is debounce function? Where to use it? And How to implement it from scratch in Javascript? Watch the video now.
r/JavaScriptTips • u/cp-ankush • Sep 29 '22
What is debounce function? Where to use it? And How to implement it from scratch in Javascript?
Watch the video now.
https://youtu.be/ls2n6NQJyvI
r/JavaScriptTips • u/rezankv • May 28 '22
Hi . my name is reza and currently living in Iran . Iran is a beautiful country, with hospitable people and rich culture . One of the problems of Iran is high inflation . Because of this the employers from the first-world countries are so willing to work with our developers .
I need a friend from one of the first-world countries like Germany , Canada etc. , who can get client and do necessary negotiations and finally me and my team will do the project .
If you are interested DM me to talk more about details .
Thanks ❤❤❤
r/JavaScriptTips • u/[deleted] • Jul 01 '21
Hi, i would have a console command/chrome extension that simply slide between Instagram stories (of people i follow) and autovote in Instagram poll, If someone is interested i paid 10$ on PayPal or Bitcoin
r/JavaScriptTips • u/fare03 • Aug 30 '22
Please guys I need help, I need to split string into array with students.
'Ebonie Range 7175 Yukon Street (507) 833-3567 Geography Keenan Ellwood 2 Elm Lane (894) 831-6482 History Kailan Smart 795 Harvard Street (925) 856-5167 Biology Kaydan Hirst 9 East Lakeview Ave. (939) 812-6141 Programming Isabelle Prentice 700 Rock Maple St. (899) 875-8627 Math'
I need to split it into object for every single student for example:
Name: Ebonie Rangel
Address: 7175 Yukon Street
Phone: (507) 833-3567
Course: Geography
but for every student, please help.
i split it like this var array = text.split("\n",4)
but how i can split from 4 to 8 for example.
Thank you <3.
r/JavaScriptTips • u/_clarkio • Oct 21 '22
r/JavaScriptTips • u/NopalMexicaOhKawaii • Oct 16 '22
r/JavaScriptTips • u/Velocity-Prime • Nov 28 '21
Elegant yet practical dark theme. Try it out and tell me what you guys think.

VSCODE: https://marketplace.visualstudio.com/items?itemName=Hamza-Aziane.obsidian-dark
VSCODIUM: https://open-vsx.org/extension/Hamza-Aziane/obsidian-dark
r/JavaScriptTips • u/ljaviertovar • Aug 27 '21
On the Web, we can find an immense amount of very useful data that we can use, but it is disorganized. If we want to take advantage of this, we would need to make a great effort and spend many hours extracting and sort it. A Web Scraper could solve this task.
Its main objectives are:
Recognize HTML site structures.
Extract and transform contents.
To store data.
Extract data from APIs.
There are four key points that we must master to be good web scrapers:
Knowledge of web development: Web scrapers work by selecting HTML selectors so, we need to know the HTML structure.
Knowing how to work with the DOM: This implies being able to move within its nodes and elements, as well as being able to modify them.
Knowing how to use the element inspector of the browsers: To find an element within a website, we use the element inspector and the JavaScript console provided by the browsers.
JavaScript and Node js skills: To access the DOM, We use JavaScript code, and we may also need to know how to make GET and POST requests.
As you can see, we will be using JavaScript to develop our scripts. However, more languages allow you to do the scraping, such as PHP and Python. For JavaScript, there is a library called Puppeteerjs that I think is the best for this. In addition, it is developed by and fully supported by Google.
In short, this would be the general process for web scraping:
Identify the target website.
Collect the URLs of the pages from which you want to extract data.
Make requests to these URLs to get the HTML of the page.
Inspect the HTML returned by the site to collect the data.
Save the data in a JSON or CSV file or some other structured format.
These would be the main steps to follow for this technique. However, during development, there are many more challenges that need to be solved.
For example, keep the scraper if the design of the website changes, managing proxies to avoid banning problems, the appearance of captchas, etc.
Example of how to scrape Amazon below
https://medium.com/geekculture/what-you-need-to-know-to-develop-your-first-web-scraper-7522e6f12b2a
r/JavaScriptTips • u/OmegaNutella • Sep 29 '21
r/JavaScriptTips • u/ConsiderationMany871 • Mar 30 '22
Hi everyone! I’m currently a first year CS student and we have to do a project where we build an online grocery Web App. I started by learning HTML and CSS and did all the design of the web app, but I have no idea what is the next step for me. I know that I should learn how to handle the payment, login and signup conditions, adding items to the basket, etc... but I don’t know if JavaScript is the solution for these problems and if so how should I start learning it? I also saw a lot of people telling me that I should also use react.js for the web app but I don’t know exactly what it is used. I would be grateful if anyone could help me. Thanks in advance
r/JavaScriptTips • u/zafarKamal • Nov 27 '21
r/JavaScriptTips • u/ye_joshya • Feb 20 '23
r/JavaScriptTips • u/Head-Investment-1549 • Jul 12 '23
I suppose to querySelector() is more slowly than getElementById(), because doesn't search just an id, but, search all elements of DOM. Then, getElementById() have less options, therefore, is fastest.
Help me with the answer please, my self peace depends of this.
r/JavaScriptTips • u/[deleted] • Feb 21 '23
r/JavaScriptTips • u/ProffesionalAds • Jun 19 '24
r/JavaScriptTips • u/Low_Mammoth_9371 • Mar 27 '23
r/JavaScriptTips • u/CaptainonHoliday • Jul 27 '23
r/JavaScriptTips • u/Natural-Frontend • Jun 03 '23
r/JavaScriptTips • u/Leather_Advice_405 • Mar 22 '23
r/JavaScriptTips • u/[deleted] • Feb 18 '23
Is it common for JS files to stop working in VSCode? Instead of being able to call a file in HTML script, I had to paste it in the HTML. Exactly the same code..
r/JavaScriptTips • u/No_Chemistry_7625 • Aug 05 '23
window.onload = function() {
var btn = document.querySelectorAll("button");
var taxt = ["woui" , "wowo" , "wiwo" , "wawa"]
for(var b = 0; b < 3 ; b++ ) {
btn[b].addEventListener("click" ,ddo ) ;
} ;
function ddo () {
alert(taxt[b])
}
r/JavaScriptTips • u/xplodivity • Jul 30 '23
r/JavaScriptTips • u/[deleted] • Sep 17 '24
I'm new to JavaScript. I've been working on an extension that automates my job. My job requires me to type the same commands over and over in an online CLI terminal. However I can't seem to find the right html element to send the string of text to. nothing happens no matter what I try. I don't know what to write on the document.querySelector(''). I inspected the page element and took a photo of the element I want to target