A programming paradigm in which emphasis is given on data rather than process

Photo by Arian Darvishi on Unsplash

Object-Oriented Programming is a design philosophy also known as OOP. Object-Oriented Programming(OOP) uses different sets of programming languages than old procedural programming languages(C, Pascal, etc.)Everything in OOP is grouped as self-sustainable “objects”. Hence you gain reusability by means of OOP concepts.

OOP allows the decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. Data cannot be accessed directly, they are only accessible through the member function. There might be a number of objects in a program written in OOP language. Those objects can communicate with each other by calling…

Storing data in the browser…

Local Storage Vs Session Storage Vs Cookies

Storing data in the various storage options is very useful. But it is very difficult to know which storage option is best for a particular use case. So let’s discuss what are the differences between each option.

What are Cookies, Local Storage, And Session Storage used for?

They all are used to store information on the user’s browser which can be accessed even after navigating to new pages on your site.
This data is also saved to the user’s exact browser they are using so if they have your site open in any browser, it will only save the data to that browser on the device they are currently on…

Photo by Artem Sapegin on Unsplash

What makes Javascript suitable for functional programming is that it accepts Higher-Order Functions. Higher-Order Functions are extensively used in Javascript.

What is Higher-Order Function?

A higher-order function is a function that receives a function as an argument or returns the function as an output.
Taking other functions as arguments is often referred to as a callback function because it is called back by the higher-order function. This is a concept that Javascript uses a lot.
For example, .map(), .filter() , .reduce() etc. are the some built-in higher order functions.

So let’s discuss some of the useful built-in higher-order functions in the Javascript.


Let’s look…

Photo by Ilya Pavlov on Unsplash

Javascript is one of the popular languages in the market. It is used both in the front-end and back-end development. So part of the reason for this proliferation across the web is for its apparent simplicity — getting started in Javascript can feel quick and easy and starting with basics is a great way to go. However, once you start looking deeper there are a lot of subtleties to Javascript that are easy to overlook.
Everyone makes mistakes, so here are the six most common mistakes that help you to polished your code.

Getting Confused About Equality

Javascript rules of coercion can be incredibly…

Track the changes and collaborate easily. 😄😄

Photo by Richy Great on Unsplash

What is Git?

Git is a distributed version control system (DVCS), also known as decentralized. Git was initially designed and developed by Linus Torvalds for Linus Kernel development. Git is free software distributed under the terms of the GNU General Public License version 2.

Advantages of Git

  • Free
  • Open Source
  • Security
  • Backup
  • Branching

Every developer has a full copy of the repository which is hosted in the cloud.

Download and install Git


sudo apt-get update

sudo apt-get install git


Download from the official page.

Create a repository

  • Create a new repository also known as a repo.

git init [project_name]

  • Clone an existing repository.

git clone [url]

Make a change

  • Stages the file, ready for commit


Keep your code readable, changeable, extensible, and maintainable. 😊

Photo by Safar Safarov on Unsplash

The code is clean if it can be understood easily by everyone. Clean Code can be read and enhanced by a developer other than its original author.

The benefits of writing clean code are:

  • Easier to start or continue
  • Better for team onboarding
  • Easier to follow

Here are some of my tips for coding standards.

1. Always use ‘let’ instead of ‘var’

Always use let instead of var because of scoping issues in javascript.

Code for ‘let’ instead of ‘var’

2. Always use ‘const ’ instead of ‘let’

Always use const which stops developers trying to change that shouldn’t and really helps with readability.

Code for…

Rohan Shakya

Tech Enthusiast | Student

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