Message from JavaScript discussions

June 2019

— Recive the checkbox value and run the get call


Full code of all the involved parts please :) in best case: create a or or etc

— Hello, how can i check the EOF condition in Javascript?

— What's "the EOF condition"?

— End of file

— The end of a stream (stdin for example, or stdout) or literally any other file (a text file, for example)

Message permanent page

— stream.once('end', yourFunction)

— Generally

— So if it's stdin:
process.stdin.once('end', yourFunction)

— It was a value in C

— It was literally called EOF, you could do if (var != EOF) and it would work

— echo hey | node -e "process.stdin.once('end', () => console.log('ended')); process.stdin.resume()"

Message permanent page