Csaba Kissi Profile picture
Jan 3 10 tweets 4 min read
8 possible ways to use event listeners in Javascript. 👇
1️⃣ Using the addEventListener method:
2️⃣ Using the on method:
3️⃣ Using the on method with event delegation:
4️⃣ Using the addEventListener method with event delegation:
5️⃣ Using the on method with inline event handlers:
6️⃣ Using the addEventListener method with anonymous functions:
7️⃣ Using the on method with named functions:
8️⃣ Using the addEventListener method with named functions:
If you like this post, you can bookmark and tag it by replying with @SaveToBookmarks #javascript #tips

You can view your bookmarks on savetobookmarks.com

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Csaba Kissi

Csaba Kissi Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @csaba_kissi

Jan 5
10 most useful Math methods in Javascript. 👇 Image
1. Math.abs()

Returns the absolute value of a number. Image
2. Math.ceil()

Rounds a number up to the nearest integer. Image
Read 13 tweets
Jan 4
8 most common Javascript data types every web developer should know.👇 Image
1️⃣ String

A sequence of characters represented with single or double quotes. Image
2️⃣ Number

A numeric value. Can be an integer (e.g. 1, 100) or a decimal (e.g. 3.14, 0.01). Image
Read 11 tweets
Jan 2
If you want to know what programming languages and techniques to learn in 2023 (and where) open this 👇
1. Javascript (javascript .info)

Javascript .info provides information and tutorials about the JavaScript programming language.

Multiple categories, well organized.

🔗 javascript.info
2. Python (learnpython)

Learnpython offers resources and tutorials for learning the Python programming language.
Read 13 tweets
Dec 30, 2022
5 music APIs for your next side project 👇
1️⃣ T-one Youtube Converter

Download video from youtube URLs or convert them to Mp3s.

rapidapi.com/tuttotone/api/…
2️⃣ 50K Radio Stations

More than 60,000 radio stations from different countries and various genres.

rapidapi.com/herihermwn/api…
Read 7 tweets
Dec 29, 2022
You want to monetize 💰 your coding skills, right?

Here are 5 web application ideas you can build and monetize👇
1️⃣ Online store builder from Notion doc

An online store builder that allows businesses to create and manage their online stores.

It's specific because it would pull data from Notion docs.

You'll leverage Notion API.
2️⃣ Simple Task Manager App.

A task management tool that helps users organize and prioritize their tasks and to-do lists.

It could be used by individuals and teams looking to increase productivity and efficiency.
Read 8 tweets
Dec 28, 2022
Important REST API related terms you should know.👇
1️⃣ HTTP Verbs

REST APIs use various HTTP verbs, such as GET, POST, PUT, and DELETE, to specify the type of action being performed on the resource.

For example, a GET request retrieves data from the server, while a POST request creates a new resource on the server.
2️⃣ Status Codes

REST APIs use HTTP status codes to indicate the result of the request.

For example, a status code of 200 indicates that the request was successful, while a status code of 404 indicates that the requested resource was not found.
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(