pranay Bhattacharjee

56 posts

pranay Bhattacharjee

pranay Bhattacharjee

@pranayBhat7

treating this like my dev diary 📓

Katılım Şubat 2025
167 Takip Edilen10 Takipçiler
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
Valid Palindrome 🧩 Two-Pointer is a total game-changer for string problems. Instead of wasting memory creating a new string, we just walk from both ends and meet in the middle.✅ Time: O(n)✅ Space: O(1)Keep it simple, keep it fast. 💻🚀 #LeetCode #Java #patternwisedsa
pranay Bhattacharjee tweet media
English
0
0
1
8
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
Starting a DSA pattern series today. Stop using nested loops for everything. 🛑 Two Pointers pattern is the ultimate "work smarter". Whether it's reversing an array or finding a target sum, this pattern is a game-changer for optimization #DSA #Coding #Patterwisedsa #Twopointers
English
0
0
0
7
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
Hoisting in JS 👇 • var → hoisted, initialized as undefined • let/const → hoisted but stuck in TDZ ⚠️ • function declarations → fully hoisted • function expressions → not ready before init Same code, different behavior. Know the difference. #JavaScript #Hoisting #WebDev
pranay Bhattacharjee tweet media
English
0
0
1
36
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
JS getters/setters 👇 Access looks simple, logic isn’t. • email → uppercase • password → transformed Control access. Hide internals. Stay clean. #JavaScript #OOP #CleanCode
pranay Bhattacharjee tweet media
English
0
0
1
16
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
Can you change Math.PI in JavaScript? Not really 👇 Math.PI is non-writable, so even if you try, its value stays locked 🔒 Using Object.defineProperty(), you can control: • writable • enumerable • configurable Example: making a property read-only + hiding it from loops.
pranay Bhattacharjee tweet media
English
0
0
1
9
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
JavaScript Control Flow Basics 👇 • if / else conditions • Logical operators && and || • switch statements • Truthy & Falsy values • ?? Nullish coalescing • Ternary operator #JavaScript #WebDev #chaiaurcodejs
pranay Bhattacharjee tweet mediapranay Bhattacharjee tweet mediapranay Bhattacharjee tweet mediapranay Bhattacharjee tweet media
English
0
0
2
14
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
JavaScript IIFE (Immediately Invoked Function Expression) 👇 Used to execute a function immediately and avoid global scope pollution. Syntax: (function name(){})() #JavaScript #WebDev #chaiaurcode
pranay Bhattacharjee tweet media
English
0
0
2
15
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
Understanding this in JavaScript 👇 • this refers to the current object context • Global this → {} in Node / window in browser • Arrow functions use lexical this arrow functions inherit this from the outer scope. #JavaScript #Coding #chaiaurcode
pranay Bhattacharjee tweet mediapranay Bhattacharjee tweet media
English
0
0
1
20
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
JavaScript Scope & Hoisting Basics 👇 • Global vs Block Scope • let, const, var behavior • Nested functions • Function hoisting , function expressions, function declaration Understanding these concepts prevents many JS bugs. #JavaScript #WebDev #chaiaurcode
pranay Bhattacharjee tweet mediapranay Bhattacharjee tweet media
English
0
0
1
18
pranay Bhattacharjee
pranay Bhattacharjee@pranayBhat7·
JavaScript object concepts in one example 👇 • Singleton object using Object.create() • Object destructuring Did you know? Symbol properties cannot be accessed using dot notation in JavaScript. ✔ Symbol keys #JavaScript #WebDev #chaiaurcode
pranay Bhattacharjee tweet mediapranay Bhattacharjee tweet media
English
0
0
2
27