Node Process Lab

In this lab, you'll need to demonstrate how to access global and process variables.


  1. Write a script that accesses global object
  2. Add logic to access process information
  3. Save and run the scripts


You are a DevOps engineer and you're tasked with deploying a Node.js API server. Developers worked for months on this app and now the team needs your expertise to push the app to production.

The server needs to be "smart" enough to get secret values from whatever OS or environment it is on. In other words, this lab will test you how well you know and can utilize process information. For example, global has other global objects like process, while global.process or just process has system information.


  1. Create a script version.js which exports the current node version. Export with module.exports = {your code here}
  2. Create a script envvar.js which returns NODE_ENV environment variable. Export with module.exports = {your code here}
  3. Create a script platform.js which returns the platform name on which you are running it. Export with module.exports = {your code here}
  4. Run npm test to verify your 3 solutions

Extra Info

View node-process-lab on and start learning to code for free.

Unlock your future in tech
Learn to code.

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us