I recently started using Node JS for programming, and I had written code that take input from stdin (command prompt) in windows. The difficulty arises here is that I go on inputting values and it didn't stopped (i.e. didn't reached the end). I searched over internet and found some saying that use CTRL-D or CTRL-V, but both is not working for me. Is there anything missed up or any other method to resolve it.
Any help would be appreciated. Thanks to community.
Here is the code I had written.
Why did you write the code in the comments? Why not in the blog itself?