r/JavaScriptTips • u/xplodivity • May 05 '22
r/JavaScriptTips • u/keraito • Jul 26 '21
How To Write Readable React Content States
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
Debounce Function in js
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
[ Teammate Require]
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
Easy fast and paid little job is JS
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
Javascript help
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
How to make a mock API server in JavaScript | Snyk
r/JavaScriptTips • u/NopalMexicaOhKawaii • Oct 16 '22
Duda Intento mostrar un array pero muestra solo los indices, lo hice asi 1 use un prompt para pedir canciones 2 las puse en el array 3 intento mostrar el array pero salen los indices como hago para que muestre los strings
r/JavaScriptTips • u/Velocity-Prime • Nov 28 '21
Obsidian Dark Theme for VSCode
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
What you need to know to develop your first Web Scraper with JavaScript
The quick guide to getting started in Web Scraping with javaScript
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.
What knowledge do you need to have to get started in web scraping?
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.
The Web Scraping process
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
How To Create Tax Management App With JavaScript
r/JavaScriptTips • u/ConsiderationMany871 • Mar 30 '22
For what is exactly used JavaScript
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
Daily Javascript Tips 🎉: Use the single pipe operator to floor numbers
r/JavaScriptTips • u/ye_joshya • Feb 20 '23
Hello guys, i wrote a tweeter thread about spread and rest with real life examples. Check it out..
r/JavaScriptTips • u/Head-Investment-1549 • Jul 12 '23
querySelector() vs getElementById(). In performance, have any differences?
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
How to write event listener which run only once? JavaScript interview questions #40 subscribe for more
r/JavaScriptTips • u/ProffesionalAds • Jun 19 '24
The Dark Side of 'Foreach()' : Why You Should Think Twice Before Using It | daily.dev
r/JavaScriptTips • u/Low_Mammoth_9371 • Mar 27 '23
ChatGPT: How well does it write JavaScript? Examples and reflections for practice
r/JavaScriptTips • u/CaptainonHoliday • Jul 27 '23
Python vs JavaScript: Which is a Better Programming Language?
r/JavaScriptTips • u/Natural-Frontend • Jun 03 '23
Dynamic Content Editor Tutorial: Create Interactive Web Pages with JavaScript
r/JavaScriptTips • u/Leather_Advice_405 • Mar 22 '23
When using window.open(url,popup) how to get a spinner until the url loads and wanted to show popup if url loads successfully with status 200 and show error modal on failure of this url.
r/JavaScriptTips • u/[deleted] • Feb 18 '23
Issues with JS files - VS Code
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
how can i make the button clicked show one of the taxt strings each button to each string
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])
}
