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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

  • 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
      • • 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
    • Showing results for:
    • JavaScript
    • Node.js Basics 2017
    • Building a Command Line Application
    • Capturing Command Line Arguments
    • Close
  • 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 on Apr 6, 2021 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 on Sep 16, 2020 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 on Jun 23, 2020 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 on Aug 21, 2019 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 on Apr 19, 2019 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 on Sep 15, 2018 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 on Jul 31, 2018 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 on Jun 9, 2018 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 on Mar 6, 2018 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 on Feb 14, 2018 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 on Dec 21, 2017 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 on Dec 9, 2017 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 on Dec 7, 2017 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 on Oct 9, 2017 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 on Oct 2, 2017 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 on Sep 6, 2017 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 on Aug 6, 2017 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 on Jun 5, 2017 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 on Apr 25, 2017 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 on Apr 13, 2017 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 on Feb 22, 2017 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.