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.

  1. CentOS 8
  2. Node.js v12.18.4

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

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

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training