4 ms·
I rarely use ifs and whiles using javascript.. There are better, higher level libraries that take care of it for you. As a bonus, some of them let you make it *
by phzbOx 15y ago
I rarely use ifs and whiles using javascript.. There are better, higher level libraries that take care of it for you. As a bonus, some of them let you make it * paralleled* with the same syntax. Obviously, when you switch to a new language, you need to learn their new paradigms / designs.
- adgar 15y ago> As a bonus, some of them let you make it * paralleled* with the same syntax. JavaScript is single-threaded, so parallelism within a single JS VM is not possible.
- phzbOx 15y agoHence the *
- robfig 15y agoRarely use ifs? What do you do if you want to see if, e.g. there are any results for the user's query? I would do if (results.length > 0) or something