It’s partly due to the fact a multi-threaded program can run on multiple cores but the main reason, by far, is that when a thread is waiting for some IO operation (which is very often, especially in a server), the other threads can still progress .
Read moreIs Nodejs single threaded or multithreaded?
js is single-threaded because the JavaScript programming language is single-threaded.7 Eyl 2021
Read more