ES6 has object restructuring to create variables from an object’s properties.

We can create objects with `{...}`

and properties which have key and value pair. Key has `''`

around it and there is `:`

between key and value. Value can be any type.

`const name = {…`

I have a hard time understanding and remember these Javascript Objects, Instance Methods, and Functions because I don’t use them daily. So I hope this will help you to refresh your memory.

We use objects to store multiple values as a data structure.

The

method calls a function with…**apply()**

JavaScript Higher-Order functions allow functions that operate on other functions. These methods help to transforming, searching, and summing lists easier. These methods are are `map(), filter(), reduce(), find(), forEach()`

.

The `map()`

method creates a new array with the results of calling a provided function on each element in this typed…

Building a todos application by following these order:

1 Create the React app on the terminal. Run the command below and it will create a directory `my-app`

`npx create-react-app app-frontend`

2 Start up the React app

Change directory to `app-frontend`

and run `npm start`

. …

I graduated from Flatiron school last year. I have been prepared for my job search since then. I had a couple of HR phone interviews, technical interviews. Some companies asked you to take the assessment test prior to the phone interview. Here is an example of an online assessment test…

Given a positive integer, write a function to find if it is a power of two or not.

Naive solution

In the naive solution, we just keep dividing the number by two unless the number becomes `1`

and every time we do so, we check that remainder after division is…

I’ve been learning Data Structures and Algorithms since I graduated from Flatiron School. There are a lot of good online resources that you can use. They are online code challenges, videos, books, blogs. However, I start losing track due to overwhelming resources. I try to learn a specific topic at…

In mathematics, the Euclidean algorithm, or Euclid’s algorithm, is an efficient method for computing the greatest common divisor (GCD) of two numbers, the largest number that divides both of them without leaving a remainder.

The Euclidean algorithm is based on the principle that the greatest common divisor of…