T
T
ThisFruit2021-01-19 19:23:50
Node.js
ThisFruit, 2021-01-19 19:23:50

How to output text to nodeJs standard stream?

In the Olympiad, you need to output the result to the standard nodeJs stream. Do you mean console or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Israfil22, 2021-01-19
@ThisFruit

Every process has stdout, stdin, stderr.
In node.js - process.stdout.


process.stdout and process.stderr differ from other Node.js streams in important ways:
- They are used internally by console.log() and console.error(), respectively.
Node.js docs

So yes: console.log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question