Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Fill-in-the-blank for the Node.js final quiz (the final set of three questions)

The link is:

http://teamtreehouse.com/library/nodejs-basics/building-a-command-line-application/perfecting-getting-multiple-profiles-2

Of course with the quiz being only three questions you HAVE TO

get all three questions right to pass

(both the quiz and the course!)

AAAARRRRGGGGHHHH!!!!

Here's the question that stumped me:

________________ is a global object we can access things like the current version of node and arguments passed in as a command line.

I thought it might be 'node', or maybe 'http', but I ended up on this node.js page (looking for a global object):

http://nodejs.org/api/globals.html

However, it was only after running through the questions dozens

(and DOZENS) of times that I noticed something in question two:

Quiz Question 2 of 3

The command line arguments can be accessed through which property on the process object?

Really?!

There's a process object?

Huh?!

Indeed there is:

http://nodejs.org/api/process.html

..and 'process.version' is:

"A compiled-in property that exposes NODE_VERSION. "

...per this this part (down aways) on the process page: http://nodejs.org/api/process.html#process_process_version

Of course this means the fill-in-the-blank answer is:

"Process"

..obviously.. :stuck_out_tongue_closed_eyes:

Note: I was actually going for a more sarcastic emoji like

"rolls eyes": alt text

..but it's not on the Markdown Emoji Cheatsheet: http://www.emoji-cheat-sheet.com/

Note: I only managed to pull in the rolls eyes emoticon from another programming forum via the special "Images" markdown codes shown on this Master Markdown Codes page: https://teamtreehouse.com/forum/howto-guide-markdown-within-posts

Anyway..hopefully this saves someone a lot of wasted time focusing a quiz question on something so relatively obscure...

Thank you, I have been doing exactly the same!!! Ugh.

thank you for answering it, saved me a whole lot of time. :D

bless you

Yep, this was an annoying one. Thanks for your research.

2 Answers

The "process" object is a global object and can be accessed from anywhere. It is an instance of EventEmitter.

Blessings on you.