Programming Workflow
For the sake of keeping the examples short, I will not be using the browser to run any of the code. Instead, I will be focusing on the actual problem and running the solution with Node.js. This will allow us to quickly test code and verify that it is working accordingly so that we can avoid HTML and CSS completely. The work flow for this is a simple and easy one to follow.
- Write the code in a file with an extension of
.js
, e.g.,app.js
. - Let Node.js know about your file by executing it.
[code lang=javascript]
node app.js
[/code]
- Node.js will terminate after your script has completed executing.
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More