tengo una cuerda
𝖆𝖇𝖈
y quiero obtener el segundo carácter de esta cadena
// with a normal string the result is var normalString = "abc" normalString[1] // -> b // but with this one the reslt is var weirdString = "𝖆𝖇𝖈" weirdString[1] // -> � I get this "replacement charactere" instead of 𝖇1) Puede usar la sintaxis extendida aquí para esparcir una cadena en una matriz
const weirdStringArr = [...weirdString];2) Acceda al símbolo UNICODE usando el índice
weirdStringArr[1] var weirdString = "𝖆𝖇𝖈"; const weirdStringArr = [...weirdString]; console.log(weirdStringArr[1]);