print to console without newline nodejs

Create a file named "app.js" and add the following code:

process.stdout.write("Hello, ");
process.stdout.write("World!");

Save the file and run it using the command:

node app.js

The output will be:

Hello, World!