r/JavaScriptTips • • May 05 '22

Free resources to get better at javascript

1 Upvotes

r/JavaScriptTips • • Jul 26 '21

How To Write Readable React Content States

Thumbnail
chakshunyu.com
1 Upvotes

r/JavaScriptTips • • Sep 29 '22

Debounce function in Javascript

1 Upvotes

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 • • Sep 29 '22

Debounce Function in js

1 Upvotes

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 • • May 28 '22

[ Teammate Require]

1 Upvotes

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 • • Jul 01 '21

Easy fast and paid little job is JS

0 Upvotes

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 • • Aug 30 '22

Javascript help

0 Upvotes

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 • • Oct 21 '22

How to make a mock API server in JavaScript | Snyk

Thumbnail
snyk.io
1 Upvotes

r/JavaScriptTips • • 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

0 Upvotes

r/JavaScriptTips • • Nov 28 '21

Obsidian Dark Theme for VSCode

1 Upvotes

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 • • Aug 27 '21

What you need to know to develop your first Web Scraper with JavaScript

1 Upvotes

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:

  1. Knowledge of web development: Web scrapers work by selecting HTML selectors so, we need to know the HTML structure.

  2. 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.

  3. 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.

  4. 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 • • Sep 29 '21

How To Create Tax Management App With JavaScript

Thumbnail
youtube.com
1 Upvotes

r/JavaScriptTips • • Mar 30 '22

For what is exactly used JavaScript

1 Upvotes

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 • • Nov 27 '21

Daily Javascript Tips 🎉: Use the single pipe operator to floor numbers

1 Upvotes

Did you know? You can use a single pipe operator to floor float numbers in javascript.


r/JavaScriptTips • • Feb 20 '23

Hello guys, i wrote a tweeter thread about spread and rest with real life examples. Check it out..

Thumbnail
twitter.com
0 Upvotes

r/JavaScriptTips • • Jul 12 '23

querySelector() vs getElementById(). In performance, have any differences?

1 Upvotes

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 • • Feb 21 '23

How to write event listener which run only once? JavaScript interview questions #40 subscribe for more

Thumbnail
youtube.com
0 Upvotes

r/JavaScriptTips • • Jun 19 '24

The Dark Side of 'Foreach()' : Why You Should Think Twice Before Using It | daily.dev

Thumbnail
app.daily.dev
0 Upvotes

r/JavaScriptTips • • Mar 27 '23

ChatGPT: How well does it write JavaScript? Examples and reflections for practice

Thumbnail
youtu.be
0 Upvotes

r/JavaScriptTips • • Jul 27 '23

Python vs JavaScript: Which is a Better Programming Language?

Thumbnail
thecompetenza.com
0 Upvotes

r/JavaScriptTips • • Jun 03 '23

Dynamic Content Editor Tutorial: Create Interactive Web Pages with JavaScript

Thumbnail
youtu.be
1 Upvotes

r/JavaScriptTips • • 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.

0 Upvotes

r/JavaScriptTips • • Feb 18 '23

Issues with JS files - VS Code

1 Upvotes

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 • • Aug 05 '23

how can i make the button clicked show one of the taxt strings each button to each string

1 Upvotes

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])
}