Skip to content

mostafashehata0/wikipedia-search-engine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wikipedia-search-engine

hello there, your task is to use debounce technique with the search input on the top of the page.

fork the repository and start working on it.

best of luck.

the changes which i do are 1.Define a simple debounce function that takes a function and a wait time as arguments. This function should return a new function that, when called, will clear any existing timeout and set a new timeout to call the original function after the specified wait time has passed.

2.Create a debounced version of the (generateResults) function by passing it to the (debounce) function along with a wait time of 300 milliseconds.

3.Update the (validateInput )function to use the debounced version of (generateResults). This will delay the execution of the (generateResults) function until 300 milliseconds after the user has stopped typing in the search input. https://mostafashehata0.github.io/wikipedia-search-engine/

About

this is search engine fork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.0%
  • CSS 35.2%
  • HTML 21.8%