Tag: “javascript”
-
Learn Async Await WIth Four ExamplesBeginnerThe goal of this tutorial is to show you how you can use the async/await feature from the newest version of Javascript. I will explain quickly and painlessly how you can replace Promises with async/await, do proper error handling,...
-
Building A Sticky Sidebar In ReactIntermediateIn this three part live coding series, we will build a basic 8-2 column layout and add a sticky sidebar to our app. In the process, we will learn about how we can create dummy paragraphs programmatically and leverage...
-
An Overview Of Classical Javascript Classes and Prototypical InheritanceIntermediateObject Oriented Javascript is not an easy concept to grasp, the language implements object oriented programming(oop) concepts via the Prototypical Model, it’s a powerful model that allows JS to be an extremely flexible language. In this article I will explain...
-
Handle mass polling with Back Off AlgorithmIntermediatePosted under Let’s Fix, where we discuss problems and solutions to real world web dev problems Recently I had the opportunity to solve a problem that may not be common to most people, but if you ever have to deal with...
-
How to detect AdBlock via JavascriptBeginnerAdblock is a classic double edge sword of the internet. As a consumer, It helps save computing power, blocks you from third party trackers and prevents nasty malwares from infecting your computer. On the other hand, as a publisher,...
-
ES6/ES2015 For Newbies Lesson 5: DestructuringIntermediateThe destructuring assignment syntax is a JavaScript expression that makes it possible to extract data from arrays or objects into distinct variables. Say I have an array: const list = ['a', 'b', 'c', 'd']; If I want to set each...
-
ES6/ES2015 For Newbies Lesson 4: Spread and Rest ParametersIntermediateAre you tired of splicing, spiting, and concatenating arrays? Array manipulation is one of the most common things a developer does daily. To help with that, Javascript provided us with language level APIs like Array.split, Array.splice, Array.slice, and Array.concat. While the APIs...
-
ES6/ES2015 For Newbies Lesson 3: Enhanced Object Literals and Default ValuesIntermediateEnhanced Object Literals Objects are essential part of Javascript. It’s no surprise that they’re getting a feature lift in ES6: // Enhanved Object Literals let foo = 'bar'; let myObj = { foo, // same as foo: foo _name:...
-
ES6/ES2015 For Newbies Lesson 2: Blockscope with Const and Let & Template StringIntermediateES5 variable scopes In ES5, variables are scoped to the closest outer function where they’re declared: function myFunc() { var foo = true; if (foo) { var car = 'tesla'; var website = 'google.com'; } console.log(car); console.log(website); } myFunc(); In...
-
ES6/ES2015 For Newbies Lesson 1: Arrow FunctionsIntermediateIn this introductory lesson, we’re going to learn about Arrow functions from the latest version of Javascript: ES6 or ES2015. What was wrong with context in javascript? In old version of Javascript, the keyword this is functionally bound. meaning when you...
Loading...