New Advanced JS Treasure: Prototypal inheritance, WebSockets, WebRTC

Single Responsibility Principle

Advanced JS techniques and concepts like Prototypal inheritence, websockets and WebRTC can be used to create more complex and powerful web applications. Prototypal inheritance is a way of creating objects in JavaScript that is based on prototyping, rather than classes. WebSockets are a web technology that provides full-duplex communication channels over a single TCP connection. … Read more

JavaScript is Awesome -New Thunk and Currying Hack!

thunk

Introduction Functional programming in JavaScript, particularly through the use of thunks and cur- rying, offers developers powerful tools for managing function execution and argument handling. Thunks are functions designed to encapsulate computations for deferred execution, making them especially useful in scenarios requiring asynchronous oper- ations, such as those commonly encountered in Redux applications. This capability … Read more

Unlock JS: Powerful REST and SPREAD Magic You Need to Know

three dots

Introduction The rest and spread operators are syntactic features in JavaScript introduced with ECMAScript 2015 (ES6), both denoted by three consecutive dots (). The rest oper- ator is utilized to collect multiple function arguments into a single array, enhancing flexibility and allowing developers to create functions that can accept an indefinite number of parameters. Conversely, … Read more

JavaScript Generators Magic and Their Use Case: Everything Yield Need To Know

javascript

JavaScript generators is an amazing and brilliant concept; yet it’s very confusing when to use them. They let us write infinite loops that terminate. The yield values from functions before they finish and build lazy data structures. The magic lies in the ability of generators functions to be paused and then resumed again. But before … Read more