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

Thunk A thunk usually refers to a small piece of code that is called as a function; does some small thing; and then JUMPs to another location; which is usually a function; instead of returning to its caller. Assuming the JUMP target is a normal function, when it returns, it will return to the thunk’s caller. The word … Read more

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

three dots

In JavaScript, the rest operator (also called the spread operator) allows us to represent an indefinite number of elements as an array. It’s a helpful tool that can make our code more concise and easier to read. Rest and Spread is quintessential for JS.Here’s an example of how the rest operator works: In this example, … 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