Category javascript

Node: How to write TCP client

This article will help you understand how to write general TCP Client using Node. TCP is the transport layer protocol which provides services to application layer and takes service from Network Layer. TCP offers the end-to-end communication also referred as…

Javascript: Arrow function Expression

Arrow functions were introduced in ES6 (EcmaScript 6) which provides the more compact way to work with anonymous functions with smaller and compact syntax making code more readable and structured. Though, arrow functions provide compact and short hand syntax to…

JavaScript: String.fromCharCode vs String.fromCodePoint

String.fromCharCode vs String.fromCodePoint
String.fromCodePoint was introduced in ES6 to address shortcomings of String.fromCharCode to deal with UNICODE. Discussing String.fromCharCode vs String.fromCodePoint, both methods receive sequence of code points but String.fromCharCode require surrogate pair for supplementary characters while String.fromCodePoint also can receive directly code…