Understanding and Using JavaScript's Splice and Slice EffectivelyStorytime I wanted to trim a string at multiple places and for that, I was using splice and slice interchangeably without knowing their actual usage and then things started to break. So I read about them and thought I should share them with you guys ...Nov 21, 2023 · 4 min readmaitrakhatri.hashnode.dev
What is Terminal, Command Prompt, CLI, Shell, Bash, ZSH ?Today I messed up my Terminal so badly that even ls command was not found. And I was like it's a basic standard command which does not depend upon anything to run then why is this happening? This goes without saying StackOverflow saved the day but th...Oct 28, 2023 · 2 min readmaitrakhatri.hashnode.dev
Understanding Closures in JavaScriptIntroduction According to our friendly neighborhood teacher MDN Docs: A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). Function + it's lexical environment = ...May 28, 2022 · 3 min readmaitrakhatri.hashnode.dev
Understanding Lexical Scope in JavaScriptIntroduction Remember the time when you're writing some code, you try to access an variable but it throws an error that variable is not defined. But you can clearly see that you have defined it and used it multiple times in the function above. That's...1PFeb 28, 2022 · 3 min readmaitrakhatri.hashnode.dev