Csaba Kissi Profile picture
Jan 9 โ€ข 9 tweets โ€ข 3 min read
5 Javascript tips you'll wish you knew earlier.๐Ÿ‘‡
You can use the "typeof" operator to check the value type at runtime.

For example:
The "instanceof" operator can be used to determine whether an object is an instance of a specific constructor or class.

For instance:
The "in" operator can be used to determine whether an object possesses a specific property.

For instance:
You can get an array of an object's enumerable properties by using the "Object.keys()" method.

For instance:
The "Object.entries()" method returns an array of an object's enumerable property key-value pairs.

As an example:
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
That's all, guys.

If you found this list useful, consider:

โœ… Follow @csaba_kissi for more content like this
๐Ÿ”” Enable notifications ๐Ÿ‘€
๐Ÿ”„ Retweeting the first tweet.

Thanks for your support, guys! ๐Ÿ™๐Ÿค
In this case I used Carbon

โ€ข โ€ข โ€ข

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 9
5 FREE Public APIs for your next project/side project.

Thread ๐Ÿงต๐Ÿ‘‡
1. Alpha Vantage

The easiest and most effective way to get stock, ETF, forex, technical indicators, and cryptocurrency data is to use a leading API provider like us.

rapidapi.com/alphavantage/aโ€ฆ
2. Live Sports Odds

Get the inside scoop on who's winning with Odds data API for NFL, NBA, MLB, EPL, AFL, and more, from US, UK, EU, and Aussie bookmakers.

rapidapi.com/theoddsapi/apiโ€ฆ
Read 7 tweets
Jan 8
If you want to know about Javascript Arrow functions, read this:๐Ÿ‘‡
In JavaScript, one kind of function expression is an arrow function.

It features a shorter syntax but is otherwise similar to a conventional function.

Here is an example of a regular function and an arrow function that do the same thing:
When dealing with higher-order functions, arrow functions can help you write more succinct code (functions that take other functions as arguments).

You can see how to combine a standard function with an arrow function using the map array method in this example:
Read 12 tweets
Jan 7
5 Javascript tips you'll wish you knew earlier.๐Ÿ‘‡
To acquire the first element in an array that meets a criterion, use the Array.prototype.find() method.
To combine many objects into one, use the Object.assign() method.
Read 8 tweets
Jan 5
10 most useful Math methods in Javascript. ๐Ÿ‘‡
1. Math.abs()

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

Rounds a number up to the nearest integer.
Read 13 tweets
Jan 4
8 most common Javascript data types every web developer should know.๐Ÿ‘‡
1๏ธโƒฃ String

A sequence of characters represented with single or double quotes.
2๏ธโƒฃ Number

A numeric value. Can be an integer (e.g. 1, 100) or a decimal (e.g. 3.14, 0.01).
Read 11 tweets
Jan 3
8 possible ways to use event listeners in Javascript. ๐Ÿ‘‡
1๏ธโƒฃ Using the addEventListener method:
2๏ธโƒฃ Using the on method:
Read 10 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!

:(