ARTICLEViews: 14232Share  Posted by - Anonymous

Interview Question - Given a search string, fetch all movies results from the api

Given a string `substr`, getMovieTitles() must perform the following tasks:


1. Query https://jsonmock.hackerrank.com/api/movies/search/?Title=substr (replace substr).

2. Initialize the titles array to store total string elements. Store the Title of each movie meeting the search criterion in the titles array.

3. Sort titles in ascending order and return it as your answer.


let me know any other solution for this problem


Given a search string, fetch all movies results from the api Helpful? Please support me on Patreon: ...

Fetch API | JavaScript Tutorial in Hindi #66

Make a Search Bar with React (with API Calls) | Beginners Tutorial

Movies and TV Series Searching App in React JS and Material UI 🔥

Search Filter in React JS - Filter Through Results



Views -