Skip to content

Tag: javascript

Getting JSON object from a arraylist

I have specific problem with axios to getting JSON object from my arraylist, so instead of display my displayName on my nav bar, it display all response headers information, i don’t know why ? : that my json list from my localhost : that my code : Answer Take a look at the axios docs. The response objec…

Trying to get a value from a custom store Svelte

i want to ask something, i have a custom store like i will explaying the scenario, im creating a script for a fivem server and im using svelte, i create a store that get a Vehicle with some properties like Name, Last Name, Plate and bla bla, i create the setData(Vehicle) and pass a set(Vehicle) then in anothe…

Regex solution for matching groups does not work

Imagine a text like in this example: I need a REGEX pattern which will match the parts in [[ ]] and I need to match each part individually separated by commas. I already tried but it doesn’t work as expected. It matches only the full string and have no group matches. Also it has a catastrophic backtrack…