Skip to content

Category: Questions

Ramp in and out SVG turbulence filter

I’m working on a non-linear menu and I’d like it to have a nice animation when hovering over the options. I managed to put together a turbulence svg filter that I like. Now I’m wondering how to make it so that when one hovers over the option the turbulence ramps up progresively, and that the…

Checking same case in JavaScript

I was trying to solve a code wars kata called “Check same case”, and I’m not understanding what is wrong with my solution and why it doesn’t pass. The function should check: If either of the characters is not a letter, return -1 If both characters are the same case, return 1 If both ch…

Paging in react

good morning, how are you? I’m having a problem with pagination, when I click to change the page it appears the page results and goes back to the first one right away, would you know how to help me? For example, if I click on page 2, its results appear but it immediately goes back to page 1, I don&#8217…

stocking api response.data in localStorage on click vuejs

My goal is to store a specific data in the localStorage when I click on a link but log i get is either undefined or absolutely nothing. I am using this API https://www.themealdb.com/api/json/v1/1/categories.php I guess this.categorie.strCategory is incorrect but i really cant figure it out I also tried this.c…

TypeScript can’t assign an Object Type to Record

I’m learning TypeScript, and decided to try implement it in a small portion of my codebase to get the ball rolling. Specifically, what I’m refactoring now is related to a fixture “factory” for the purpose of generating fixtures for Jest tests. In addition to these factories, which spit…