How to write multiple lines of code in Node REPL
Node v6.4 has an editor mode. At the repl prompt type .editor and you can input multiple lines. example $ node > .editor // Entering editor mode (^D to finish, ^C to cancel) const fn = there => `why hello ${there}`; fn(‘multiline’); // hit ^D ‘why hello multiline’ > // ‘block’ gets evaluated and back … Read more