Pritam Pramanik Profile picture
Sep 1, 2021 β€’ 12 tweets β€’ 6 min read β€’ Read on X
πŸ’› 10 JavaScript Unknown Facts that every developer must know . I bet you don't know many of them πŸ˜‰

A Thread 🧡 πŸ‘‡

#100DaysOfCode #Javascript #Coding #code #programming #CodeNewBie #DEVcommunity
1️⃣ Check this code below πŸ‘‡

Numbers as string can subtract , multiply , divide other Numbers and numbers as string (except Addition ) and return an integer value. Don't worry , it's a bug of JavaScript !! Image
2️⃣ How 010 = 8 ?

It happens in JavaScript because every number containing a "0" in front of it is referred as an octal number . And as octal 10 = decimal 8 that's why it will return 8 !! Image
3️⃣ Did you know that string function returns a string but "new String ()" returns an object !!

See below πŸ‘‡ Image
4️⃣ If you convert "null" to a number it will return 0 . That's why 10 + 0 will be 10 !! Image
5️⃣ {} === {} Will return false because "{}" is an object and object can never be equal another object as they have unique identifiers. Image
6️⃣ Comma operator
"," is an operator that separates expressions and returns the last expression in the chain.πŸ‘‡ Image
7️⃣ IIFE :-
IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. Image
8️⃣ You can make a new scope by using "{}" (no need for a function or if-else statement ) . πŸ‘‡ Image
9️⃣ If you want to measure the performance time of your Js program , than you need not use date/time . You can use performance.now() like this πŸ‘‡ Image
πŸ”Ÿ In JavaScript , typeof null will return Object . But if you use null instanceof Object , this will return false !! That's because it's a big of JavaScript πŸ‘‡ Image
That's all guys for this thread !

If you find this thread useful then,

πŸ“Œ Retweet the first tweet.

πŸ“Œ Like all the tweets.

πŸ“Œ Follow me (@Tony_Codezz ) and turn on my notifications.

Note:- Your support motivates me.

β€’ β€’ β€’

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

Keep Current with Pritam Pramanik

Pritam Pramanik 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 @_Pritam_26

Sep 20, 2021
πŸ’› Machine Learning from Scratch for beginners !!

A Thread 🧡 πŸ‘‡
#100DaysOfCode #Ml #MachineLearning #CodeNewBie #AI
πŸ”ΉWhat is Machine Learning ?

Machine Learning is a growing technology which enables computer to learn automatically from past data . It uses various algorithms for building mathematical models and making predictions using historical data or information . Image
πŸ”Ή What is a model in ML ?

A machine learning model is a file that has been trained to recognize certain types of patterns. You train a model over a set of data, providing it an algorithm that it can use to reason over and learn from those data.
Read 17 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!

:(