2
votes
Accepted
Spawning a child process that is accessible in global scope through use of eval()
Unless there's some reason the child processes need to have their own names in the global scope, the easier and safer solution would seem to be having a global array which the child processes are kept ...
2
votes
Server code to upload and save images to cloud storage
Within resizeImages, the if (req.files.media)... seems to be highly redundant. You seem to be unnecessarily checking for ...
1
vote
Can I optimize my implementation of generating Fibonacci series using recursion?
Bug
As pointed out in comments the start of the sequence is [0, 1, 1, 2 ...] you function starts with [0, 1, 2 ...]
Code style
...
1
vote
Accepted
A reduce method which aggregates common data in objects
A couple of things that can be simplified/refactored:
Conditionals can be reduced to improve code readability.
No need to clone an object if it already exists. Instead, we can just update the ...
1
vote
jQuery building select control
There are a couple of ways that I know how you could improve the code, although the benefit ultimately is that the code is cleaner, for the size of your code it doesn't really matter that much, but it'...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 9637jquery × 2322
html × 1039
node.js × 910
performance × 840
beginner × 679
ecmascript-6 × 641
css × 596
algorithm × 482
object-oriented × 407
array × 393
angular.js × 356
dom × 355
react.js × 342
ajax × 300
programming-challenge × 285
functional-programming × 281
html5 × 261
json × 227
promise × 225
game × 223
event-handling × 218
animation × 217
strings × 216
datetime × 192