Posts for Javascript

JavaScript, often abbreviated as JS, is a high-level, interpreted scripting language that conforms to the ECMAScript specification. JavaScript has curly-bracket syntax and dynamic typing

Understanding Hoisting in JavaScript

This article is for JavaScript developers who want a deep understanding of the core concept of the language and how the javascript engine work. Though var and let are standard keywords for variable declaration in JavaScript, at the end of this tutorial, you will know why let is of more preference than var. Is it […]

December 21, 2019 in Code examples & Javascript

Building a Serverless Web App Using Firebase

In this article, we’ll see how Firebase allows us to focus on our core business logic and exposes simple to integrate APIs we can use to communicate with the backend. In the simplest terms, Serverless frameworks and architectures enable you to build and run web applications without thinking about managing servers. This frees up valuable […]

December 21, 2019 in Javascript & Tutorials

How to Modularize Javascript Code

Before we learn How to Modularize Javascript Code, we first need to understand what they are. Can you think of any complex system ranging from a bicycle to a more complex automobile engine? What is the common feature of these complex systems? These systems are made of individual parts with different functionalities interacting with one […]

December 20, 2019 in Javascript & Tutorials

Understanding Fetch() in JavaScript

The fetch()  method allows you to make network requests similar to XMLHttpRequest (XHR). The main difference between the Fetch API and XMLHttpRequest which was otherwise known as XHR is that the Fetch API uses Promises, which makes you write cleaner API calls, strictly avoiding callback hell and reducing the complexity of XMLHttpRequest. Basic Fetch Request […]

December 20, 2019 in Code examples & Javascript

Working with JavaScript Array.push() method

Arrays Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations. Unlike Sets which only contain unique items, Arrays can contain duplicates items. JavaScript Array.prototype.Push() In this post, we will be talking about JavaScript Array.push() method with examples. The Array.push() method is used to add items to the end of an […]

December 19, 2019 in Code examples & Javascript
Deven
Deven wrote

JavaScript Functional Programming Basics

JavaScript functions are first-class objects, which means functions possess the same properties as variables do. With the introduction of the latest JavaScript Syntax, a lot of improvements have been done to boost your JavaScript functional programming workflow, including arrow functions, promises, and the spread operator. So, What is JavaScript Functional Programming? JavaScript Functional programming is […]

December 16, 2019 in Code examples & Javascript

Writing cleaner code with higher-order functions

Higher-order functions in JavaScript simply put are functions that either return another function or take another function as an argument. There are built-in higher-order functions in JavaScript which we’ll be looking at in a bit, first, let’s look at the simplest example of a higher-order function: const add = (x)=>(y)=> x + y; As you […]

December 11, 2019 in Javascript & Tutorials

An in-depth view of Higher-Order functions

Introduction As complex as it may seem, higher-order functions are functions that either accepts a function as an argument or returns a function or does both. This is possible because, in JavaScript, functions are first-class citizens — they are treated as variables and can be passed as arguments to other functions and returned by other […]

December 5, 2019 in Javascript & Tutorials

How to build a Twitter bot with NodeJs

Building a Twitter bot using their API is one of the fundamental applications of the Twitter API. To build a Twitter bot with Nodejs, you’ll need to take these steps below before proceeding: Create a new account for the bot. Apply for API access at developer.twitter.com Ensure you have NodeJS and NPM installed on your […]

December 2, 2019 in Javascript & Node & Tutorials

Operator (&& ||) short-circuiting in JavaScript

One handy feature of JavaScript and some other programming languages like Java is the concept of operator short-circuiting.So, what does the operator short-circuiting in JavaScript mean? To understand what operator short-circuiting mean, let’s see it in action: let online = true; let active = true; if(online) { if (active) { console.log(‘James’) } } Short-circuiting the […]

November 20, 2019 in Javascript & Tutorials

How to consume RESTful APIs with axios

Knowing how to consume data from an API is very important as a front-end developer. In this article, we’ll discuss what an API is and how to consume data from it via http to give your web app superpowers. It is assumed that you have adequate knowledge of JavaScript and how NodeJs works. What is […]

November 18, 2019 in Javascript & Node & Tutorials

Different methods of copying objects in Javascript

In this article, you will learn different methods to copy an object in Javascript. It is no news that JavaScript —which happens to be my favorite programming language possesses some weirdness. One of which is the way objects are copied. Take a look the following code snippet: let name = ‘james’ let secondName = name; […]

November 7, 2019 in Javascript & Tutorials