Csaba Kissi Profile picture
Solopreneur • 25+ YOE • 200+ side projects • 💰$3m+ • Coding, AI, SEO, DM for collabs ➡️ https://t.co/fvuWg2duU6 ➡️ https://t.co/yuysSDkcfo ➡️ https://t.co/TzOOt1Qpgd

Jan 9, 2023, 9 tweets

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

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling