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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Close
  • Max van den Berge
    Max van den Berge
    6,506 Points

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

    Posted on Feb 14, 2022 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 on Feb 14, 2022 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 on Oct 27, 2021 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 on Jun 7, 2021 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 on May 20, 2021 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 on Oct 14, 2020 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 on Oct 5, 2020 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 on Jun 8, 2020 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 on May 14, 2020 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 on Apr 29, 2020 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 on Jan 31, 2020 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 on Nov 25, 2019 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 on Oct 24, 2019 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 on Oct 20, 2019 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 on Sep 17, 2019 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 on Jun 18, 2019 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 on Jun 10, 2019 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 on Jun 10, 2019 by karunaraina
    karunaraina
    1,352 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Introduction to Callback Functions
    • Creating an Anonymous Callback Function

    1 Answer

  • Leslio McKeown
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Leslio McKeown
    Python Development Techdegree Student 9,530 Points

    I don't understand what it is asking me

    Posted on May 2, 2019 by Leslio McKeown
    .a{fill-rule:evenodd;}techdegree
    Leslio McKeown
    Python Development Techdegree Student 9,530 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 on Mar 5, 2019 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 on Sep 22, 2018 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 on Sep 15, 2018 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 on Aug 21, 2018 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 on Jun 17, 2018 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 on Jun 3, 2018 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 on Mar 6, 2018 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 on Feb 25, 2018 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 on Sep 27, 2017 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 on Jul 25, 2017 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 on Jul 24, 2017 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.

    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.