Programming is all about constant learning, I’m sure you’ve felt the same way at some point in time. JavaScript contains an ocean of tricks and concepts that never fail to amaze us. There are definitely a bunch of tips and tricks in the JavaScript world that I’m not aware of, but these are a few concepts that I recommend using in your code. Let’s learn some cool JavaScript tricks to make your code look and work better.

1. Nullish coalescing operator (??)

The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is null or…


Just like any other skills, the coding interview is one area where you can greatly improve with deliberate practice. So here’s what I started off with. I have solved five problems on arrays and have given out my code and output. There are more ways of solving these problems. This is how I solved mine.

1) Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length.

Do not allocate extra space for another array, you must do this by modifying the input array in-place


Coding is similar to writing prose. Every individual does it a little differently, and as a result, when our code is read, we all have a distinct voice. Different naming conventions and problem-solving logic exist in all of us. We all think our code makes sense — particularly if it works — but it’s possible that it doesn’t to someone else. To combat this, we all need to get better at code commenting. That way, whoever comes next to the project will have a clear path to understanding and improving/fixing our code.

To begin with, let’s make sure that we’re…


I’ve been revising JavaScript for days now and I realized why not make a cheatsheet to read in one go. Cheat Sheets are something developers need always for reference. So here I have compiled many JavaScript reference codes. See the classification and find it. This post is helpful for learners and developers.

JavaScript Number Method Cheat Sheet

toString() : returns a number as a string.


In Java, string is basically an object that represents sequence of char values. An array of characters works same as Java string. I have solved five problems on strings and have given out my code and output. There are more ways of solving these problems. This is how I solved mine.

1) Reverse String

Write a function that reverses a string. The input string is given as an array of characters char[].

Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.

You may assume all the characters consist of printable…


JavaScript is one of the most popular (if not the most) programming languages in the world. I have learned JavaScript basics in the past which included all about values, types, and operators, the program structure, functions, Data Structures i.e. Objects, and Arrays, Handling events and drawing on canvas. When I was first introduced to Asynchronous Programming which is a topic in advanced javascript, I couldn't understand the concepts of callbacks and promises.

For a long time, asynchronous, event-driven callbacks were an unavoidable part of JS development.

Traditional callback


GitHub recently released a feature that allows users to create a profile-level README to display prominently on their GitHub profile. The GitHub profile-level README feature allows more content than the profile bio, supports markdown which means you can play around with the content more visually (Did someone say GIFs!?) and the README is significantly more visible as it is placed above the pinned repositories and takes up as much space above the fold of the webpage as you like.

My GitHub Readme

How do I create a profile README?

The profile README is created by creating a new repository that’s the same name as your username. For example, my GitHub…


Yesterday I had the pleasure of speaking at the “Technica 2020 Hackathon” by Machine Learning at IIT about Git workflow. It’s time we revisited Git and how important it is to master in order to advance in our careers. Mastering Git will make a huge difference in how you manage code and your own day-to-day workflow. So, here I come with a few things that I know about when using ‘GitHub’.

Why Git?

As you already know, a version control system like Git tracks the history of changes as people and teams collaborate on projects together. As the project evolves, teams can…

Minal Vaity

Software Developer in Chicago

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store