"NodeJS" (External Evaluation System)

Details

  • Node.js Version 7.10.1 and higher is supported.
  • Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
  • To configure Node.js for use in the Wolfram Language, follow the instructions from the Configure NodeJS for ExternalEvaluate workflow.

ExternalEvaluate Usage

  • ExternalEvaluate["NodeJS",code] executes the code string in a Node.js REPL and returns the results as a Wolfram Language expression.
  • ExternalEvaluate["NodeJS""String",code] executes the code string in a Node.js REPL and does not interpret the results.

Data Types

Examples

open allclose all

Basic Examples  (1)

Scope  (1)

Start a session:

Evaluate a Boolean statement in NodeJS and return it:

Concatenate strings in NodeJS and return the result:

Create an ExternalFunction with NodeJS:

Call the function:

Close the session: