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 number in the array is duplicated, which means another number is missing. Find and return the sum of the duplicated number and the missing number. […]
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. A function that takes a positive integer and returns the largest power of two less than or equal to that integer. Input: 5 Output: […]
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 are initially standing on the first tile. Each tile in the set represents your maximum jumping distance at that position. (Ex: If you are standing […]
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 allows us to create functions in a cleaner way compared to regular functions. In this tutorial, we will learn arrow functions and also we will […]
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.
Download any paid Software. Get any software free for lifetime
In this article, we will discuss about how to download cracked software. Most of the people in this world want to try new software but we all know that not every software is free. Some are free and some softwares are paid. We have to pay for those softwares. Not […]
10 React Js Common Packages That Helps You In Your Projects
In this article, we will discuss some common react Js packages. These packages can also help you in many different ways.
Encrypt Javascript and CSS Code – Hide Original Code from Users
how we can encrypt our code and prevent users from viewing the original code. Encryption of javascript code is required when we don’t want to share our code. To read the encrypted code, the person must decrypt the code first.
Fix Grub Problem – Grub Not Showing – Dual Boot Problem Ubuntu with Windows 10
how to fix it and bring the Grub menu back. Fix GRUB not showing during boot problem in Windows. the steps are equally valid for Windows 8 and 8.1. Similarly, I’m using Ubuntu in dual boot here, but the trick applies to all other Linux distributions such as Linux Mint, etc.
World’s Top 10 Most Popular Indian Brands
In the world there are so many people who likes to buy expensive things. These types of people mainly like to use popular and expensive things. In India, there are also so many people who loved to buy premium things. Many people in India thinks that only international brands are big and good for them, so they do not trust Indian brands.
Upload WordPress Plugins and Themes Using FTP
Create FTP account from cPanel and get the login information. Now connect to the server using any FTP software like File Zilla. Download the zip file of the plugin or theme. A zip file of plugin or theme can be downloaded from WordPress.org
Chat With Your Own Number On Whatsapp
Everyone chats on WhatsApp with their family members, friends, etc… You can chat with your own number on WhatsApp. You can use this trick to save some important messages or you can use this trick for your own interest.
Record Android Phone Audio With Audacity
In this article, you will learn about the Internal sound recording of smartphones using audacity application. We will explain every step from the start to the end. Audacity is a windows OS application. It is used to record and edit audio. Audacity is also available for macOS and Linux.
Record Android Phone Screen With ADB – Without Any App
Record phone screen using ADB. To record your screen you just need two things like a Computer or a Laptop and a USB cable. Before we start, you need to enable the USB debugging from Developer Options on your android phone.
What is WP-JSON in WordPress – REST API of WordPress
WP-JSON in WordPress Definition of WP and JSON:Â WP stands for WordPress and JSON is for JavaScript Object Notation. JSON is highly used in the REST API. All data will be formatted in JSON format so that the developer can easily fetch the data from the API. What is WP-JSON: WordPress […]
How to Disable xmlrpc.php
In this article, we are going to learn about the steps to turn off the xmlrpc feature from WordPress. Methods to disable xmlrpc.php
By WordPress Plugin
By Modifying .htaccess file