Continuously you will need to know what type are the variables in order to create conditionals that are prepared to manipulate and maintain your code stable. For that reason I give you a cheat sheet to establish what is exactly your variable.

These are functions to which you pass your…

Async/await was introduced in 2017 with ES8. It is a way to execute your code asynchronously without blocking the thread. Instead of using callbacks and promises the async/await syntax makes your code more readable and maintainable.

Creating an Async function

To create an async function we just need to add the async keyword before…

I will list some quick facts and concepts you probably did not know about JS.

Type coercion

Type coercion is the process of converting value from one type to another. Since JavaScript is a weakly-typed language, it converts two different typed variables when you use its operators.

A great cheat sheet for…

JavaScript has some useful string methods that are built into , I will share 5 methods that I find the most useful . I’ll quickly review some core concepts relating to strings.

String

In JavaScript, strings are any sequence of characters. …

In programming unintended side-effects called errors can and will happen in your code. Allowing these errors to be introduced to people that are using your programs is frowned upon and a very bad user experience.

Error Handling is the technique of smoothly handling these errors and providing useful information to…

A Doubly Linked List (DLL) is a linked data structure consists of a set of sequentially linked records called nodes which contains a lot of data elements and is even able to do a lot of operations such as insertion, delete, remove and add.

Start

Similar to a singly linked list…

Array is a special variable that is use to store different elements, to get the most of it let’s take a look to some methods JavaScript offers us.

1. some()

This method tests the array with a function passed as a parameter. …

In this post I want to explain how to test most popular React Hooks using jest and enzyme.

To test react lifecycle, we need to use mount instead of using shallow.

useState

To test useState I created a small component with a title and a button to change that title.

function…

CRUD Operation?

The acronym CRUD stands for Create, Read, Update and Delete.

Create: Inserts a new data
Read: Read the data
Update: Update the existing data
Delete: Delete the existing data

List of HTTP Request methods

GET — is used to request data from a specified resource.
POST — is used to send data to a server to…

Heroku account

1) Here’s the link: https://signup.heroku.com/

2) You’ll be creating a new app and adding your app’s name and region.

Heroku Set up

1) Install Heroku CLI. On a Mac, if you have homebrew, run brew tap heroku/brew && brew install heroku in the terminal, otherwise check out the documentation.

2) In the root…

Zara Ahmadi

Software Engineering student @Flatiron

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