🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Why in the video when we use const users = process.argv.slice(2) we don't need the line const username = ['chalkers',~~]

    Posted April 6, 2021 5:05pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • Jonathan Ambriz
    PLUS
    Jonathan Ambriz
    Courses Plus Student 3,902 Points

    It shows the same information regardless of the name..

    Posted September 16, 2020 8:58pm by Jonathan Ambriz
    Jonathan Ambriz
    Courses Plus Student 3,902 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • ilovecode
    ilovecode
    8,071 Points

    Alena Holligan's data does not always appear first

    Posted June 23, 2020 9:35am by ilovecode
    ilovecode
    8,071 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • Anna Shalaginova
    Anna Shalaginova
    3,160 Points

    Print part of the program does not work when I add process.argv

    Posted August 21, 2019 2:31pm by Anna Shalaginova
    Anna Shalaginova
    3,160 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    4 Answers

  • Akshay Bhamare
    Akshay Bhamare
    15,616 Points

    Accessing the response argument as an object

    Posted April 19, 2019 1:59pm by Akshay Bhamare
    Akshay Bhamare
    15,616 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    2 Answers

  • Shivangi Sriv
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Shivangi Sriv
    Full Stack JavaScript Techdegree Student 261 Points

    Capturing command line arguments

    Posted September 15, 2018 6:41pm by Shivangi Sriv
    .a{fill-rule:evenodd;}techdegree
    Shivangi Sriv
    Full Stack JavaScript Techdegree Student 261 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • Quintin Riley
    Quintin Riley
    12,136 Points

    users.forEach(getProfile); not working for me

    Posted July 31, 2018 4:09am by Quintin Riley
    Quintin Riley
    12,136 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    3 Answers

  • Larry Gonzales
    Larry Gonzales
    10,112 Points

    Unexpected token N in JSON at position 0

    Posted June 9, 2018 9:25pm by Larry Gonzales
    Larry Gonzales
    10,112 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • Kristian Woods
    Kristian Woods
    23,414 Points

    Am I not connecting to the API correctly?

    Posted March 6, 2018 3:49pm by Kristian Woods
    Kristian Woods
    23,414 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • Greg Marsee
    Greg Marsee
    3,193 Points

    different output values

    Posted February 14, 2018 8:35pm by Greg Marsee
    Greg Marsee
    3,193 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • sam poplack
    sam poplack
    9,467 Points

    How do I fix this error on my code to make it run properly

    Posted December 21, 2017 12:05am by sam poplack
    sam poplack
    9,467 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    2 Answers

  • Erwan EL
    Erwan EL
    7,669 Points

    Not updated profiles

    Posted December 9, 2017 10:22pm by Erwan EL
    Erwan EL
    7,669 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    2 Answers

  • Zach Freitag
    Zach Freitag
    20,341 Points

    Why not working? My code is perfect. https://teamtreehouse.com/workspaces/33084322#

    Posted December 7, 2017 2:55am by Zach Freitag
    Zach Freitag
    20,341 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    2 Answers

  • shirshah sahel
    shirshah sahel
    10,035 Points

    Stuck here, when I type Node app.js it would'nt show me the total number of badges and points in javascript .

    Posted October 9, 2017 6:27pm by shirshah sahel
    shirshah sahel
    10,035 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    3 Answers

  • Blake Foster
    Blake Foster
    10,184 Points

    argv not printing out username array.

    Posted October 2, 2017 12:46am by Blake Foster
    Blake Foster
    10,184 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    0 Answers

  • Richard Brown
    Richard Brown
    6,950 Points

    SyntaxError: Unexpected token N in JSON at position 0 - Please help

    Posted September 6, 2017 4:22pm by Richard Brown
    Richard Brown
    6,950 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    3 Answers

  • saber
    saber
    13,276 Points

    How does forEach pass the username to getProfile?

    Posted August 6, 2017 5:24am by saber
    saber
    13,276 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    2 Answers

  • Christopher Debove
    PLUS
    Christopher Debove
    Courses Plus Student 18,373 Points

    Could have use destructuring

    Posted June 5, 2017 2:42pm by Christopher Debove
    Christopher Debove
    Courses Plus Student 18,373 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    3 Answers

  • Vincent Wang
    Vincent Wang
    1,976 Points

    Syntax help

    Posted April 25, 2017 8:14am by Vincent Wang
    Vincent Wang
    1,976 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

  • A A
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    A A
    Full Stack JavaScript Techdegree Student 19,812 Points

    SyntaxError: Unexpected token N

    Posted April 13, 2017 11:33pm by A A
    .a{fill-rule:evenodd;}techdegree
    A A
    Full Stack JavaScript Techdegree Student 19,812 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    0 Answers

  • Cengiz Demir
    Cengiz Demir
    5,055 Points

    Nodejs help

    Posted February 22, 2017 5:09pm by Cengiz Demir
    Cengiz Demir
    5,055 Points
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.