Welcome to the Linux Foundation Forum!

How to handle different behaviour of Dynamic Evaluation on CentOS 8 and Windows?

Hello,

I am using the following environment.

CentOS 8
Node.js v12.18.4

The following example from Chapter 3 does not print out undefined.

$ node -p "console.log(1+1)"
2

On Windows it does print out undefined.

I'm a bit concerned as what to do when this comes up in the actual certification exam.

Best,
Zorawar

Best Answer

Sign In or Register to comment.