Amit MehtaHow to Easily Add and Remove Any Elements from a JavaScript ArrayIn this post I want to discuss a super useful way to add and remove elements from ANY index in a javaScript array.Aug 8, 2022Aug 8, 2022
Amit MehtaHow to Solve Palindrome Problem with 1 Line of JavaScriptUnless you’re just learning how to code now, you’ve probably heard of the famous valid palindrome or ‘is palindrome’ problem. It’s a common…Aug 3, 2022Aug 3, 2022
Amit MehtaHow to Match a Phone Number with Regex and JavaScriptI’ll be honest, the first time I saw a regular expression, it was a scary experience. It looks like a weird alien language! I thought to…Jul 27, 2022Jul 27, 2022
Amit MehtaHow to Crack the Staircase Problem with JavaScript using MemoizationI want to write a quick follow up to my last post on How to Solve the Staircase Problem with 5 Lines of JavaScript.Jul 22, 2022Jul 22, 2022
Amit MehtaQuick Way to Check if 2 Arrays are Equal in JavaScriptWhen learning JavaScript for the first time we’ve all done this…Jul 21, 2022Jul 21, 2022
Amit Mehta4 Simple Ways to Covert a JavaScript String to a NumberHaving to check if a string is a number, and then type convert it to a number, comes up a lot when coding in JavaScript. If you’re done…Jul 21, 2022Jul 21, 2022
Amit MehtaHow to Solve the Staircase Problem with Just 5 Lines of JavaScriptIf you’re new to algorithms and leetcode, the staircase problem is infamous!Jul 20, 2022Jul 20, 2022