Round 1 (Technical):
Focused mainly on JavaScript fundamentals, DOM behavior, and CSS layout concepts. Below are some of the key questions I faced:
⚙️ JavaScript Questions:
Hoisting
console.log(foo()); // Works
function foo() { return "Hello!"; }
console.log(bar()); // TypeError
var bar = function () { return "Hi!"; };✅ Function declarations are hoisted, but function expressions are not.
setTimeout inside loop
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 0); // 3 3 3
}
✅ Fix with let or IIFE to capture correct i.
Count Vowels & Consonants
countVovCons("hello akash"); // Output: 4 6Reverse Each Word
const str = "Hello World"; // Output: "olleH dlroW"
🎨 CSS Theoretical:
Flexbox vs Grid:
Flexbox for 1D layouts; Grid for 2D complex layouts.
Inline vs Block vs Inline-block:
Inline: No width/height
Block: Full width
Inline-block: Mix of both
Hoisting Recap:
var hoisted with undefined, let/const hoisted but in TDZ, function declarations fully hoisted.
Result: ❌ Rejected — Reason: "DSA weak" (🤷♂️)
🔗 LinkedIn: linkedin.com/in/akashvinchankar