JavaScript Interview Questions

Series: 1️⃣
Level: Beginner
Topics:

➊ Data Types
➋ Boolean
➌ Number
➍ Logical Operators
➎ Comparison Operators
➏ Arithmetic Operators
🚥 Disclaimer

⬖ The questions covered here are mostly conceptual
⬘ I never claim only these type of questions are/should be asked during interviews
⬗ For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
➊ Data Types

➀ What all data types does JavaScript provide?
➁ How to find out data type of a value? (which operator to use)
➂ What is type coercion?
➃ Any significant difference between "undefined" and "null"?
➄ What is the type of undefined?
➅ What is the type of null?
➋ Boolean

➀ What boolean literals does JavaScript provide?
➁ What all in JavaScript are falsy?
➂ What are different ways to convert any value to a boolean?
➌ Number

➀ How does JavaScript store numbers in memory?
➁ What are different ways to convert a value to a number?
➂ Which all base of numbers JavaScript support?
➃ How to write binary numbers?
➄ How to write octal numbers?
➅ How to write hexadecimal numbers?
➆ How to convert a decimal into binary / octal / hexadecimal?
➇ How to convert a binary / octal / hexadecimal into decimal?
➈ How does parseInt function operate?
➉ What is a numeric separator? Why is it used?
➀➀ What is NaN?
➀➁ Which operations may result into NaN?
➀➂ How to check if a value is NaN?
➀➃ What does NaN === NaN return?
➍ Comparison Operators

➀ What all comparison operators JS has?
➁ What is the data type of result of comparison operators?
➂ How does an equality operator behave?
➃ What is a strict equality operator?
➄ What is the difference between == and ===?
➎ Logical Operators

➀ Why are && and || operators called short-circuit?
➁ Which operator can be used to convert a value of any data type to a boolean?
➂ Which values are Nullish?
➃ Which operator can be used to detect Nullish values?
➄ Difference between || and ??
➏ Arithmetic Operators

➀ How to find out if a binary + operator is meant for arithmetic addition or, string concatenation?
➁ What is the result when something is divided by Zero?
➂ Which operator can be used to convert a value of any data type to a number?
➃ Which arithmetic operations may result into Infinity or, -Infinity?
➄ What is the precedence of arithmetic operators?
⚠️ Repost Notice ⚠️

⬖ This is my original work. But, it was previously posted in [CHIRPBIRDICON]

⬘ Many questions have been taken from the original 🧵

⬙ If you liked these questions and do feel others might learn from it, please support.
End of 🧵

Are you looking for Interview Questions? I will be sharing interview questions on DSA, SQL, HTML/CSS, JavaScript and React in coming days.

If you are interested, Follow me ✅

• • •

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

Keep Current with Swapna Kumar Panda 

Swapna Kumar Panda  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 @swapnakpanda

Jan 31
🦾 11 Modern JavaScript Hacks

Image
📋 Table of Contents

➊ Conversion to Number
➋ Conversion to Boolean
➌ Conversion to String
➍ Complex String
➎ Short Circuit && / ||
➏ Nullish Check
➐ Default Value
➑ Default Function Parameter
➒ Optional Chaining
➓ Array Resizing
➊➊ Function Rest Parameter
➊ Conversion to Number

To convert any data to a Number type, use

⇥ Unary "+" operator
⇥ Number function
⇥ parseInt function Image
Read 14 tweets
Jan 29
🚥 22 HTML Input Element Types
There are total 22 "input" types in HTML.

⇥ text
⇥ password
⇥ search
⇥ url
⇥ email
⇥ tel
⇥ number
⇥ button
⇥ submit
⇥ reset
⇥ file
⇥ checkbox
⇥ radio
⇥ range
⇥ datetime-local
⇥ month
⇥ week
⇥ time
⇥ date
⇥ hidden
⇥ color
⇥ image
⚠️ Message ⚠️

I have compiled these information with all sincerity. But in case you find any omissions or, wrong presentations, please inform me.
Read 4 tweets
Jan 26
How is Math.min() > Math.max() ?

A JavaScript 🧵
➊ Background

⬔ Try to execute below in console.

⇥ Math.min() > Math.max()

⬓ You will be surprised to see the result "true".

⬕ How can min() be more than max()? Is it weird?

Let's find out.
➋ Variadic Function

⬔ A function is called "variadic" when it can handle variable number of arguments.

⬕ Both Math.min() and Math.max() can handle any number of arguments including "Zero".
Read 10 tweets
Jan 25
SQL & RDBMS Interview Questions

Series: 1️⃣
Level: Beginner
Topics:

➊ Introduction to RDBMS
➋ Normalisation
➌ Introduction to SQL
➍ Tables and Fields
➎ Constraints
➏ DML Operations
➐ Joins
🚥 Disclaimer

⬖ The questions covered here are mostly conceptual
⬘ I never claim only these type of questions are/should be asked during interviews
⬗ For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Read 13 tweets
Jan 24
~11000 friends in [CHIRPBIRDICON], 🤩

If you are interested in,

🌐 HTML
🎨 CSS
👩‍💻 JavaScript
⚛️ React
🛠 DSA
🛢 SQL/NoSQL

Follow me ✅

I am sharing contents daily in [CHIRPBIRDICON] which you won't want to miss. 🧵of pointers to all those, 👇
👩‍💻 JavaScript

twitter.com/i/events/14854…
Read 7 tweets
Jan 23
💛 CSS: border-radius

Explained with Classic Illustrations
📋 Table of Contents

➊ Introduction
➋ How to specify?
➋.➀ One/Two/Three/Four Values
➋.➁ Percentage Value
➋.➂ Horizontal and Vertical Radius
➌ Other Related Properties
➍ Shapes using border-radius
➎ Conclusion
➊ Introduction
Read 12 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

Too expensive? 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!

:(