Hello. As to me, in the sentence "Andrusov Anatoly Nikiforovich went to drink tea near the Hudson River." find all the big letters and output an array?

    1 answer 1

    You can use the regular expression and the match function:

     var text = 'Андрусов Анатолий Никифорович пошёл выпить чай у берега Гудзона.'; var symbols = text.match(/[А-Я]/g); console.log(symbols); 

    PS Strange you have a suggestion, however :)