Swapna Kumar Panda
Swapna Kumar Panda

@swapnakpanda

11 تغريدة 25 قراءة Nov 06, 2021
JavaScript Interview Questions (S2)
Series: 2️⃣
Level: Beginner
Topics:
1️⃣ Variable Naming
2️⃣ Variable Declaration
3️⃣ Variable Scope
4️⃣ Assignment Operators
5️⃣ Bitwise Operators
1️⃣ Variable Naming
✪ What is a variable?
✪ How to name a variable/Choose a valid variable name?
✪ Is "$" allowed in variable names?
✪ Can variable names begin with a numeric digit? If no, why?
2️⃣ Variable Declaration
✪ Is variable declaration mandatory? What happens if a variable is not declared before using?
✪ How to declare a variable?
✪ What is the difference between let, const and var
✪ What is the use of "use strict" directive?
✪ What is "Hoisting"? Give some examples.
✪ What is the default value if a variable is unassigned?
✪ How to declare multiple variables in one line?
✪ What is the easiest way of declaring multiple variables and assigning a single value to all of those at once?
✪ What is the difference between Static Typed and Dynamic Typed?
✪ Is JavaScript a Static or Dynamic Typed?
✪ How to check type of a variable?
3️⃣ Variable Scope
✪ What is variable scope?
✪ What is 'window' in JavaScript?
✪ What is a block?
✪ Which out of let, const and var allows a variable to have block scoping?
✪ What is Closure? Give some examples.
4️⃣ Assignment Operators
✪ What does an assignment operator do?
✪ What is the simplest assignment operator?
✪ What is a shortcut assignment operator?
✪ Mention few shortcut assignment operators.
✪ Explain what does "a += b" do internally?
✪ Explain what does "a &&= b" do internally?
✪ Explain what does "a ||= b" do internally?
✪ Explain what does "a ??= b" do internally?
5️⃣ Bitwise Operators
✪ Which bitwise operators does JavaScript support?
✪ Explain the behaviour of Bitwise-AND (&), Bitwise-OR (|), Bitwise-XOR (^), Bitwise-NOT (!) operators.
✪ What are different bitwise shift operators?
✪ Swap 2 numbers using a bitwise operator.
Next series will cover questions from
1️⃣ Functions
2️⃣ Strings
3️⃣ Arrays
4️⃣ Object Literals

جاري تحميل الاقتراحات...