Why is Node.js scalable?

The javascript that node runs is single threaded, but a lot of the things you call in node – such as network or file io – run in background threads. See this post for a basic overview: Node is not single threaded If you need the gritty details, you should look into libuv which is the … Read more

what does O(N) mean [duplicate]

The comment was referring to the Big-O Notation. Briefly: O(1) means in constant time – independent of the number of items. O(N) means in proportion to the number of items. O(log N) means a time proportional to log(N) Basically any ‘O’ notation means an operation will take time up to a maximum of k*f(N)where: k is a … Read more