Tag string

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,…

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…