Closure means that an inner function always has access to the vars and parameters of its outer function, even after the outer function has returned.

var Counter = (function(){
let counter = 0;
return function(){
return counter += 1;

Note:- Function following by () means self invoking, It means outer function invoked single time. Means counter initialized by 1. After this all console call inner function it will increase one by one.

If you want to increase the count on the button click. It’s a real example of closure.

An SSH key is an access credential for the SSH (secure shell) network protocol. This authenticated and encrypted secure network protocol is used for remote communication between machines on an unsecured open network. SSH is used for remote file transfer, network management, and remote operating system access.

Before starting this article, I am assuming that your GitHub account has set up on your machine. If your user is not set up you should follow this article.

There are some basic steps to setup ssh key:-

  1. Open Terminal.
  2. Paste the text below, substituting in your GitHub email address.
$ ssh-keygen -t…

If we use GitHub on command prompt through the HTTPS then every time have to use username and password. It is too irritating for us. This the solution to this thing.

Just follow these steps.

  1. Open terminal.
  2. Run this on the terminal.
$ cd ~
$ sudo nano .netrc

3. Paste this content there.


4. Save and exit.

5. Close the terminal.

Now you can do any activity of GitHub on command prompt without typing the username and password.

That’s it for this time! I hope you enjoyed this post. As always, I welcome questions, notes, comments and requests for posts on topics you’d like to read. See you next time! Happy Coding !!!!!

Note:- Problem faced if you are using git through HTTPS.

Guys some time we clone or push or any activity on the GitHub account through the command prompt but every time it gives the same issue as the image.

After spending a single day I found a solution, and I am very happy to share it with you.

If you have enabled two-factor authentication then you can face the same problem as me. So if you are using git through HTTPS via command prompts then you should disable two-factor authentication. If you want to enable it, Then you should use git through the ssh key.

That’s it for this time! I hope you enjoyed this post. As always, I welcome questions, notes, comments and requests for posts on topics you’d like to read. See you next time! Happy Coding !!!!!

I think you know what is Git & GitHub. Git serves a big role in any developer’s life. There is the first step of usage of Git and GitHub.

There are some basic steps which are given below:-

  • Get a GitHub account.
  • Download and install git.
  • Set up git with your user name and email.

Open a terminal/shell and type:

$ git config --global "Your name here"
$ git config --global ""

“Your name here” means which name you want to show in contributor.
“” means which email is registered on GitHub.

Note:- (Don’t type the $; that…

S3 Pricing

Always we AWS users want to know about s3 pricing, After a lot of searches we don’t find any proper answer. So in this article, I will try my best, that I can give all answers, which all are your mind about s3 pricing.

Guys, I think, you know that what is the s3, For the free tier, there is some space for free usages and after it, AWS charges.

This image gives some brief info about the free tier usages.


We should use IAM user instead of root user it's a good habit for AWS user. When we use an IAM user then we need access key Id and secret key, as per their name these keys are confidential. But sometimes we lose it. Then how we recover these, all solutions are in this article and also we will learn that how can you reactive your old IAM user. There are some basic steps, Lets start.

Login your account:- First you should log in your account through click here.

Sometimes, We make any react app, and it working fine for everyone but sometimes some persons still use IE(Internet Explorer). Then our application doesn’t work for IE. There is a way for solving this problem.

There are some basic steps for the full understanding of this problem:-

Step 1:- Create react app

I have already written an article on this step you can go to it through this link.

Step 2:- Run the app on IE

Run the app on Internet Explorer then it won’t work. You can see on the screenshot. It will give syntax related errors.

Schedule CronJob

Cron jobs are an incredibly useful Linux tool aimed at saving you time by scheduling tasks within your server. A programmed cron task will execute commands within a script by the minute, day, week or month. They can be scheduled to do many tasks including backing up your server’s files nightly, updating inventory orders in a database or even compressing files for migrating.

There are the following steps:-

Step 1:- Check crontab is available or not-

You can check through the following command. If you find this type of output then you can confirm that cronjob is installed.

While hitting…

Elastic Search

Amazon Elasticsearch Service is a managed service that makes it easy to deploy, operate, and scale Elasticsearch in the AWS Cloud. Elasticsearch is a popular open-source search and analytics engine for use cases such as log analytics, real-time application monitoring, and clickstream analytics.

You will click on your endpoint then you will be got this type of output. It means your connectivity has established.

Ankit Kumar Rajpoot

I’m a MERN Developer. ( Redux | AWS | Python ) I enjoy taking on new things, building skills, and sharing what I’ve learned.

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