Terminal Commands to Save Time and Make You More Productive

Learn essential terminal commands for every developer Photo by Mika Baumeister on Unsplash If you’re a programmer, then most of the time you will be using the terminal. This article lists some of the most important Mac/Linux terminal commands. Basic Commands clear → Clears the screen. Alternatively, we can use Cmd + K . reset → Resets …

Detecting Battery Status in JavaScript.

Learn how to detect battery status in JavaScript using Battery Manager. Image by Brett Jordan. The BatteryManager interface provides ways to get information about the system’s battery charge level. We can use the Battery Manager to detect charging state Battery percentage Time needed to charge 100% The remaining time until the battery is completely discharged. First, let’s …

Six Ways to Create Objects in JavaScript

Learn six different ways to create an object in JavaScript. image by Dawid ZawiÅ‚a There are multiple ways to create Object in Javascript, I have listed six of them which I learned while reading. So I would like to share that with all JavaScript geeks here. First Way → Using Assignment This is how most of …

In-Depth Introduction to Call Stack in JavaScript.

Learn how the function executed in JavaScript. Image from Eaters Collective What is Stack ? Stack is a Data structure, which is similar to an array, except that we cannot access the elements using the index directly and we can only insert and delete elements at the Top of Stack(ToS). We majorly perform 2 operations in …

Design a site like this with WordPress.com
Get started