📄️ Data Types in JS
In JavaScript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods or properties. There are 7 primitive data types:
📄️ Array.from() Explained
The Array.from() method returns an array from any array-like or iterable object. The method takes in one compulsory parameter and two other optional parameters:
📄️ Obj. Chain into Array
TypeScript Model
📄️ JS reduce() in depth
The reduce() method is an iterative method. It runs a reducer callback function over all elements in the array, in ascending-index order, and accumulates them into a single value.
📄️ JS Pro Tips & Patterns - Part 1
Logical operators
📄️ for-in vs for-of
For In: Loops over the Keys.
📄️ Typescript Types
Mapped Types
📄️ JSON into Map
TypeScript Model
📄️ Support Functions
Capitalizing the first letetr (Titlecase)
📄️ String & Array Tricks – Part 1
Reverse a String With Built-In Functions
📄️ String & Array Tricks – Part 2
count the vowels in a string using regex
📄️ String & Array Tricks – Part 3
Merge two arrays and sort them in ascending order
📄️ Decorator in Typescript
A decorator in TypeScript is a special kind of declaration that can be attached to a class, method, accessor, property, or parameter. Decorators allow you to modify or enhance the behavior of the target they are applied to. They are widely used in frameworks like Angular for dependency injection, metadata, and more.
📄️ Cb Promise Async
In JavaScript and TypeScript, callbacks, promises, and async/await are mechanisms for handling asynchronous operations. Here's an explanation of each, along with examples:
📄️ Hacker Rank - part 1
Number of duplicates
📄️ Object String Conversion Guide - Part 1
---
📄️ Lexical Env & Lexical Scope in JS
🔍 What is Lexical Environment?
📄️ JavaScript Closures
🔐 What is a Closure?
📄️ JS Pro Tips & Patterns - Part 2
Currying, Higher Order Functions, Closures, Generators & Other Functional Features in JavaScript
📄️ Generics in TypeScript
You know that moment when you’re writing a function, and it hits you—“Wait, I need this same logic for strings, for users, for settings…”? And you start duplicating code like a photocopier on overdrive? That’s tech debt knocking. Generics in TypeScript aren’t some flashy gimmick. They’re the quiet fix—the “write once, work everywhere” backbone for smart, type-safe code. No hacks. No any loopholes. Just clarity with flexibility.
📄️ JavaScript Symbols
The Symbol Fairy Story