• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • italiandadx2
    italiandadx2
    1,922 Points

    Problem with the value parameter

    Posted February 23, 2021 5:19pm by italiandadx2
    italiandadx2
    1,922 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Joshua Gage
    Joshua Gage
    2,619 Points

    Why does adding value as an argument to the randomRGB function work?

    Posted February 23, 2021 11:05am by Joshua Gage
    Joshua Gage
    2,619 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    2 Answers

  • Colin Grubbs
    Colin Grubbs
    1,833 Points

    Why does calling "value" require value to have the 2 parenthisis after?

    Posted February 18, 2021 4:40pm by Colin Grubbs
    Colin Grubbs
    1,833 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Ahmad Hill
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ahmad Hill
    Full Stack JavaScript Techdegree Student 1,881 Points

    why does using an arrow function work but not a function declaration?

    Posted February 13, 2021 3:54am by Ahmad Hill
    .a{fill-rule:evenodd;}techdegree
    Ahmad Hill
    Full Stack JavaScript Techdegree Student 1,881 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Thu Phan
    Thu Phan
    2,813 Points

    My solution for The Refactor Challenge – Duplicate Code

    Posted February 9, 2021 4:08pm by Thu Phan
    Thu Phan
    2,813 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • Karla Pozzi
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Karla Pozzi
    Full Stack JavaScript Techdegree Student 4,317 Points

    Sharing my solution (would love feedback!)

    Posted January 22, 2021 12:55am by Karla Pozzi
    .a{fill-rule:evenodd;}techdegree
    Karla Pozzi
    Full Stack JavaScript Techdegree Student 4,317 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    2 Answers

  • Megha Singh
    Megha Singh
    4,509 Points

    Function Expression : how can we assign a function to a constant?

    Posted January 16, 2021 6:19am by Megha Singh
    Megha Singh
    4,509 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Paul Brubaker
    Paul Brubaker
    13,107 Points

    My solution with multiple arrow functions

    Posted January 12, 2021 9:08pm by Paul Brubaker
    Paul Brubaker
    13,107 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • jasonj7
    jasonj7
    6,213 Points

    I had no idea where to put functions

    Posted January 2, 2021 6:03pm by jasonj7
    jasonj7
    6,213 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    2 Answers

  • Becky Hirsch
    Becky Hirsch
    13,887 Points

    My solution

    Posted December 30, 2020 1:32am by Becky Hirsch
    Becky Hirsch
    13,887 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • Mila Capecchi
    Mila Capecchi
    4,059 Points

    Why does an arrow function works and a function expression doesn't?

    Posted December 29, 2020 12:36pm by Mila Capecchi
    Mila Capecchi
    4,059 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    2 Answers

  • Zoltán Erkel
    Zoltán Erkel
    6,328 Points

    My solution

    Posted December 22, 2020 6:44pm by Zoltán Erkel
    Zoltán Erkel
    6,328 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • vikrant kaushal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    vikrant kaushal
    Front End Web Development Techdegree Student 2,558 Points

    Breakdown

    Posted December 12, 2020 3:05am by vikrant kaushal
    .a{fill-rule:evenodd;}techdegree
    vikrant kaushal
    Front End Web Development Techdegree Student 2,558 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • Casey Beaver
    Casey Beaver
    4,915 Points

    Why does 'const' work to define this function, but 'function' wont?

    Posted October 1, 2020 4:50am by Casey Beaver
    Casey Beaver
    4,915 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Nick Huemmer
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Nick Huemmer
    Front End Web Development Techdegree Graduate 17,217 Points

    The final solution Guil presents, could someone explain to me why it works?

    Posted September 15, 2020 6:03pm by Nick Huemmer
    .a{fill-rule:evenodd;}techdegree seal-36
    Nick Huemmer
    Front End Web Development Techdegree Graduate 17,217 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    3 Answers

  • Billy Gragasin
    Billy Gragasin
    4,490 Points

    What's the parenthesis for when Guil called the "value" on "const color = `${value()}`?

    Posted August 30, 2020 7:46am by Billy Gragasin
    Billy Gragasin
    4,490 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    6 Answers

  • Diego Alvarez
    Diego Alvarez
    6,678 Points

    Is this solution ok?

    Posted August 1, 2020 4:04am by Diego Alvarez
    Diego Alvarez
    6,678 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    0 Answers

  • Occhipinti Giuseppe
    Occhipinti Giuseppe
    6,507 Points

    Arrow function invoked as arguments without parenthesis?

    Posted July 24, 2020 12:55pm by Occhipinti Giuseppe
    Occhipinti Giuseppe
    6,507 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    3 Answers

  • Seth Lewis
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Seth Lewis
    Full Stack JavaScript Techdegree Student 11,436 Points

    rgb parens

    Posted July 22, 2020 1:01pm by Seth Lewis
    .a{fill-rule:evenodd;}techdegree
    Seth Lewis
    Full Stack JavaScript Techdegree Student 11,436 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • ali shariq
    ali shariq
    988 Points

    Does my solution is right..? I am trying to use concept I learned in previous courses.

    Posted June 19, 2020 12:19pm by ali shariq
    ali shariq
    988 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    1 Answer

  • Samantha Atkinson
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 28,488 Points

    My Solution - Not sure if I've done bad practice in the way I have done my arrow function?

    Posted June 18, 2020 11:43am by Samantha Atkinson
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 28,488 Points
    • JavaScript
    • JavaScript Loops
    • Working with 'for' Loops
    • The Refactor Challenge – Duplicate Code

    4 Answers

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

Treehouse Logo
Our mission is to bring affordable technology education to people everywhere in order to help them achieve their dreams and change the world.
Company
Careers
Contact
Library
Tracks
Community
Stories
Perks
Affiliate Program
Treehouse for Libraries
Topics
HTML
CSS
Design
JavaScript
Ruby
View all 24 Topics
Tracks
Front End Web Development
Full Stack JavaScript
Beginning Python
UX: Interaction Design
Digital Literacy
View all 42 Tracks
  • Twitter
  • YouTube
  • FaceBook
  • LinkedIn
  • Instagram
  • About Treehouse
  • Blog
  • Shop
  • Privacy Policy
  • Terms & Conditions
  • © 2021 Treehouse Island, Inc.