Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the code snippet they show the `startAutocomplete()` function checks for the "started" variable being true; but never actually sets it to true.



It's pseudo code. The real code is TypeScript React and looks very different and it wouldn't serve the article to take snippets from that code to explain how it works.


Of course, otherwise any amateur would be able to see looping network requests right? Just saying that it'd been good to have accurate pseudocode on an MDN article.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: