For example, I want to separate capital letters in a text.
text = “Hey YASİN”
response = “H YASİN”
but I couldn’t find a method.
For example, I want to separate capital letters in a text.
text = “Hey YASİN”
response = “H YASİN”
but I couldn’t find a method.
Hey @Yasin, do you know regular expressions?
In your case,
text.match(/[^a-z]+/g).join('')
or simply,
text.replace(/[a-z]+/g, '')