Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord