Skip to content
Advertisement

Tag: searchbar

How do I filter Fetch API results with a search bar in vanilla JS?

I’m really new to javascript. I’m trying to setup a page that fetches from a placeholder API(https://jsonplaceholder.typicode.com/posts) and displays the Title, Author(which I had to add) as well as the Body. I’m also trying to give the ability to use the search bar to filter the results by userId. I got some help a few days ago getting the data

Advertisement