loading
open in
index.js
1
2
3
4
5
6
7
// The original post: https://vaibhavkaushal.com/posts/the-string-length-problem/
var mobile_num = "+919876⁤543210"
console.log("Length of mobile_num is: " + mobile_num.length)

// but...
random_string = "12345678"
console.log("Length of random_string is: " + random_string.length)
node v10.15.2 linux/amd64