DEV Community

Is it possible to call one function continuously in while loop?

ilya on July 24, 2023

I am wondering whether it is possible or not to realize multi threads in javascript while loop. for example, `while(1){ sample(param1, param2) ...
Collapse
 
webjose profile image
José Pablo Ramírez Vargas

JavaScript runs in a single thread. The V8 engine, however, provides worker threads. Read about it.