Skip to content

Category: Questions

How to convert from utf-8 encoding to windows-1251 while typing

I want to convert from utf-8 encoding to windows-1251 when the user enters text in the field For example, the user enters: Äèíóàáó I want to get: Aeioaao I use a crutch of earth symbols, but I would like to find a normal method, I could not find anything working on the Internet. What I use: It helps me, becau…

Use reduce instead of nested for loops? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 months ago. Improve this question I’m trying to print out the multiplication table using js. Is …

JavaScript Split String By ONLY Outer Curly Brackets

I’m trying to split a string by curly brackets but ignore nested brackets. E.g given the following: split into: Any help would be appreciated! This is what I have so far: Answer You have all the logic in your attempt, you just need to reorder a little and push to the results array. Here’s a quick …