node -e / node -p
Also written: node -e, node -p, -e, -p
Flags that run JavaScript from a string on the command line: `-e` evaluates it and `-p` also prints the result.
Also written: node -e, node -p, -e, -p
Flags that run JavaScript from a string on the command line: `-e` evaluates it and `-p` also prints the result.