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
  • Max van den Berge
    Max van den Berge
    6,506 Points

    function logTeacher(teacher) { console.log(`${person.name} - ${teacher.role}`); }

    Posted February 14, 2022 5:06pm by Max van den Berge
    Max van den Berge
    6,506 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating a Simple Callback Function

    1 Answer

  • Max van den Berge
    Max van den Berge
    6,506 Points

    is this not a object literal?

    Posted February 14, 2022 4:29pm by Max van den Berge
    Max van den Berge
    6,506 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating a Simple Callback Function

    1 Answer

  • Henry Spock
    Henry Spock
    20,615 Points

    Prerequisites

    Posted October 27, 2021 6:19am by Henry Spock
    Henry Spock
    20,615 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Why Callback Functions?

    1 Answer

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    convert log

    Posted June 7, 2021 11:05pm by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    0 Answers

  • Amy Tomey
    Amy Tomey
    12,847 Points

    when he says "we are not using parenthesis" and highlights (callback), does he mean he's not using quotes?

    Posted May 20, 2021 2:14am by Amy Tomey
    Amy Tomey
    12,847 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating a Simple Callback Function

    1 Answer

  • Adam Saulters
    Adam Saulters
    7,468 Points

    Is anyone able to point my toward the "unexpected "("?

    Posted October 14, 2020 12:16pm by Adam Saulters
    Adam Saulters
    7,468 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    2 Answers

  • Sean Modd
    Sean Modd
    4,688 Points

    Convert log in to an anonymous function and pass the anonymous function directly into functionRunner.

    Posted October 5, 2020 11:16pm by Sean Modd
    Sean Modd
    4,688 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Roald Jurrian Kamman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points

    Keep It Stupidly Simple KISS on arrow functions.

    Posted June 8, 2020 3:43pm by Roald Jurrian Kamman
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Function as Arrow Functions

    1 Answer

  • Bashir Orfani
    Bashir Orfani
    13,170 Points

    javascript

    Posted May 14, 2020 9:47pm by Bashir Orfani
    Bashir Orfani
    13,170 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Powell Barrett
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Powell Barrett
    Full Stack JavaScript Techdegree Student 5,241 Points

    Not sure what I have done wrong on Callback Function in JavaScript

    Posted April 29, 2020 3:33pm by Powell Barrett
    .a{fill-rule:evenodd;}techdegree
    Powell Barrett
    Full Stack JavaScript Techdegree Student 5,241 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Blake Collins
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Blake Collins
    Front End Web Development Techdegree Graduate 20,564 Points

    Callback Function Challenge

    Posted January 31, 2020 4:21am by Blake Collins
    .a{fill-rule:evenodd;}techdegree seal-36
    Blake Collins
    Front End Web Development Techdegree Graduate 20,564 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Tomasz Grodzki
    Tomasz Grodzki
    8,130 Points

    I don't see difference between function and callback function, except syntax

    Posted November 25, 2019 9:09pm by Tomasz Grodzki
    Tomasz Grodzki
    8,130 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Functions

    2 Answers

  • Charlie Prator
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Charlie Prator
    Front End Web Development Techdegree Graduate 19,854 Points

    What does Chalkley mean when he says that the anonymous function is "more expressive"?

    Posted October 24, 2019 10:52pm by Charlie Prator
    .a{fill-rule:evenodd;}techdegree seal-36
    Charlie Prator
    Front End Web Development Techdegree Graduate 19,854 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Functions

    2 Answers

  • Hayden Lau
    Hayden Lau
    4,186 Points

    Why function executeCallback(callback) { callback(); }; did not also get converted into arrow function?

    Posted October 20, 2019 5:54am by Hayden Lau
    Hayden Lau
    4,186 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Function as Arrow Functions

    1 Answer

  • Julianna Kahn
    Julianna Kahn
    20,702 Points

    I keep getting the answer: Bummer: The callback still has a name! But the code does work.

    Posted September 17, 2019 10:02pm by Julianna Kahn
    Julianna Kahn
    20,702 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    2 Answers

  • Dionte Barnes
    Dionte Barnes
    10,140 Points

    There is some code in the app.js file that needs to be completed. functionRunner has one argument missing, the callback.

    Posted June 18, 2019 1:30am by Dionte Barnes
    Dionte Barnes
    10,140 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Using a Function as a Callback

    1 Answer

  • karunaraina
    karunaraina
    1,352 Points

    call back

    Posted June 10, 2019 10:41pm by karunaraina
    karunaraina
    1,352 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    0 Answers

  • karunaraina
    karunaraina
    1,352 Points

    In the app.js file, functionRunner executes a callback, log. Convert log in to an anonymous function and pass the anonym

    Posted June 10, 2019 10:34pm by karunaraina
    karunaraina
    1,352 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Leslio McKeown
    Leslio McKeown
    9,531 Points

    I don't understand what it is asking me

    Posted May 2, 2019 4:17am by Leslio McKeown
    Leslio McKeown
    9,531 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Kevin Lewis
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Kevin Lewis
    Front End Web Development Techdegree Student 9,667 Points

    Help Creating an Anonymous Callback Function

    Posted March 5, 2019 3:40pm by Kevin Lewis
    .a{fill-rule:evenodd;}techdegree
    Kevin Lewis
    Front End Web Development Techdegree Student 9,667 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Using a Function as a Callback

    1 Answer

  • Marcell Ciszek
    Marcell Ciszek
    7,255 Points

    Can someone help me with this code?

    Posted September 22, 2018 6:46am by Marcell Ciszek
    Marcell Ciszek
    7,255 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • KASHYAP KRISHNA GURUPRASAD
    KASHYAP KRISHNA GURUPRASAD
    4,527 Points

    Prerequisite for this course

    Posted September 15, 2018 1:29pm by KASHYAP KRISHNA GURUPRASAD
    KASHYAP KRISHNA GURUPRASAD
    4,527 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Why Callback Functions?

    5 Answers

  • Peter Retvari
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points

    With arrow functions look more simple

    Posted August 21, 2018 5:04pm by Peter Retvari
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Functions

    1 Answer

  • Daniel Stewart
    Daniel Stewart
    3,163 Points

    Hello, I have learned about functions before but my code is not passing as correct please help

    Posted June 17, 2018 11:10am by Daniel Stewart
    Daniel Stewart
    3,163 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Abe Layee
    Abe Layee
    8,378 Points

    You didn't log out "Hello world"

    Posted June 3, 2018 5:44am by Abe Layee
    Abe Layee
    8,378 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • oafwifkeiw
    oafwifkeiw
    1,546 Points

    1:25: "function as a parameter" OR "function as an argument"?

    Posted March 6, 2018 6:40pm by oafwifkeiw
    oafwifkeiw
    1,546 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Anonymous Functions

    2 Answers

  • Jason Dsouza
    Jason Dsouza
    1,378 Points

    Understanding JS Callbacks

    Posted February 25, 2018 11:30am by Jason Dsouza
    Jason Dsouza
    1,378 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating a Simple Callback Function

    3 Answers

  • Valerie Laughlin
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Valerie Laughlin
    Front End Web Development Techdegree Graduate 16,110 Points

    In the app.js file, functionRunner executes a callback, log. Convert log in to an anonymous function and pass the anonym

    Posted September 27, 2017 3:43am by Valerie Laughlin
    .a{fill-rule:evenodd;}techdegree seal-36
    Valerie Laughlin
    Front End Web Development Techdegree Graduate 16,110 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    8 Answers

  • Jamilia Williams
    Jamilia Williams
    54 Points

    What am I using to do the work? Am I using Atom or Sublime text? If so whch version and can someone enlighten please thx

    Posted July 25, 2017 6:00pm by Jamilia Williams
    Jamilia Williams
    54 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Why Callback Functions?

    3 Answers

  • Alina Antemir
    Alina Antemir
    10,185 Points

    ${teacher.name} ?

    Posted July 24, 2017 7:54am by Alina Antemir
    Alina Antemir
    10,185 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating a Simple Callback Function

    3 Answers

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