DEV Community

Discussion on: What is Debouncing? Search Suggestions - A Javascript Implementation

Collapse
 
kosich profile image
Kostia Palchyk

Hey, Sabareesh! Nice article!

Hope this helps with your next posts: dev.to has a way to format your code even better! Three backticks + language + your code + closing three backticks, e.g. :

'''js
…your code…
'''

(just backtick instead of ')

And you get nice:

debounce(x => {
  console.log('hello world!');
}, 100)
Enter fullscreen mode Exit fullscreen mode

See dev.to help for more.

Keep on writing 👍

Collapse
 
sbrshkappa profile image
Bingo's Code

Thank you Kostia. That's a useful tip, I've made that change to the code snippets on this post.