function alphaToRegionalIndicator(text) {
text = text.toLocaleUpperCase().split('');
let output = "";
for (const char of text) {
const code = char.charCodeAt(0) - 65;
if (code >= 0 && code <= 25) {
output += String.fromCodePoint(127462 + code)
} else {
output += char;
}
}
return output;
}
console.log(alphaToRegionalIndicator('hEllo World'));
ππͺπ±π±π΄ πΌπ΄π·π±π©