Characters and Strings in Go Language

Go Programming language has two data types rune and string that are used to define characters and strings in go respectively Characters in Go Characters are runes in go language, rune literals are expressed in single quotes (‘) . Where,…

Looping in Go Programming Language

Go language has only one looping construct, that is for. There are three forms of for loops in Go. For can be used with single condition much like while loop in other programming language, a “for” clause which much like…

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…