## React Hook To Check If User Has Changed/Minimize the Browser Tab

Today we will learn how to develop a Custom React-Js hook to determine whether theĀ user has changed the browser tab or minimized the browser window. This hook will work for Chrome, Opera, Firefox, Edge, Safari etc…

## Custom React Hook – Get Device Screen Information – Simple JavaScript Code

Get User Device Screen Information using React Js Hook. Hello Readers… In this article, we will learn how to create our own hook for react […]

## Spread Operator and Rest Parameters in JavaScript

Spread operator in JavaScript was introduced in ES6. The syntax of the spread operator is 3 dots. The spread operator allows us to spread out the elements of an iterable object such as an Array, Map, or Set. Rest parameter in javascript allows us to handle multiple parameters in any function. We can pass an indefinite number of parameters to any function. By the use of the rest parameter, we can call a function with any number of arguments.

## Find and return the sum of missing and duplicate number – Easy Code

The input “nums” is supposed to be an array of unique integers ranging from 1 to nums.length. However there is a mistake: one of the […]

## Write a function to take a positive integer and return the largest power of two less than or equal to this integer – JavaScript Program

Write a function to take a positive integer and return the largest power of two less than or equal to this integer – JavaScript Program. […]

## Fibonacci Series In JavaScript – Easy Way

The Fibonacci sequence/series is a set of numbers that starts with a one (1) or a zero (0), followed by a one, and proceeds based on the rule that each number is equal to the sum of the preceding two numbers. If the Fibonacci sequence is denoted F (n), where n is the first term in the sequence, the following equation obtains for n = 0, where the first two terms are defined as 0 and 1 by convention:

## Find out if you can reach the last tile – Program Code

There are a number of tiles on the floor, each numbered with a different non-negative integer. Treat this set of tiles as an array. You […]

## Arrow Functions in JavaScript – Example Code

What is the arrow function in JavaScript? Arrow functions were introduced in ES6 and it provides a simple way to declare functions in JavaScript. It […]

## Basic JavaScript Concepts – The Journey Towards JavaScript

JavaScript is a Scripting language and it is an interpreted language. So we do not need to compile the JavaScript code. It is often called JS. It was developed to make websites more interactive and user-friendly. With the help of javascript, we can do many things on the browser window like: change any text, change any font color, or send requests to the server without reloading the web page. In javascript, we simply create functions and call them. JavaScript is similar to other programming languages but also javascript provides some additional features that other languages do not provide.