Adding a Node.js profile to Windows Terminal
Node.js can run our code in two different ways: by reading JavaScript code inside files, or by processing JavaScript code in an interactive session. We'll explore the former way later in the chapter as we build our application, and explore the latter way now. The interactive session lets us evaluate JavaScript statements for quick experimentation, similar to a shell. We can add this as a tab or pane in Windows Terminal:
This can be useful to get instant feedback about JavaScript in the Node.js environment; we can define and iterate on functions, play around with JavaScript syntax, better understand APIs, and more!
The tricky part here is that we installed Node.js in Ubuntu, and we want to access it as a Windows Terminal tab, which is a Windows 10 application. To bridge this gap, we can use the wsl utility that we covered...