Step 6 of 6

Make Node print one message.

Tiny win: Node runs JavaScript from iTerm2.

The tiny win

This tells Node to run one small piece of JavaScript.

Make Node speak

Type only the lines marked TYPE THIS. Do not type lines marked MAC REPLIES or NOTE.

TYPE THISnode -e 'console.log("Hello, Mia")'
MAC REPLIESHello, Mia
NOTEThe quotes matter. Type slowly, or copy the line exactly.

What happened

node

Runs JavaScript on the Mac.

-e

Tells Node to run the JavaScript after it.

console.log

Prints a message.

Course path