Skip to main content

🛍️ CYBER MONDAY ALL WEEK get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

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

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
  • Paolo Scamardella
    Paolo Scamardella
    24,828 Points

    Anonymous Function vs Function Declaration

    Posted February 15, 2015 2:14pm by Paolo Scamardella
    Paolo Scamardella
    24,828 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    1 Answer

  • Charlie Person
    Charlie Person
    8,692 Points

    Unexpected results in the console.

    Posted February 3, 2015 1:27pm by Charlie Person
    Charlie Person
    8,692 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    2 Answers

  • hognoodle
    hognoodle
    3,313 Points

    Last 'private scope' trick

    Posted January 29, 2015 9:12am by hognoodle
    hognoodle
    3,313 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    0 Answers

  • Josiah McClellan
    PLUS
    Josiah McClellan
    Courses Plus Student 7,869 Points

    Instructor made a mistake. Naming a function doesn't always assign it to a variable automatically.

    Posted January 27, 2015 3:28am by Josiah McClellan
    Josiah McClellan
    Courses Plus Student 7,869 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    1 Answer

  • mv t
    mv t
    5,513 Points

    Why should we need to make a function call act like a mathematical expression at 13:54 ?

    Posted December 30, 2014 3:40am by mv t
    mv t
    5,513 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    1 Answer

  • Shane He
    Shane He
    7,618 Points

    Anyway we can improve this js series?

    Posted December 4, 2014 8:12pm by Shane He
    Shane He
    7,618 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    11 Answers

  • Culture Foundry
    Culture Foundry
    8,396 Points

    The thing I don't get, is why would we ever use an anonymous function? Why not just name them all?

    Posted October 6, 2014 4:01pm by Culture Foundry
    Culture Foundry
    8,396 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    2 Answers

  • Justin McAuley
    Justin McAuley
    6,643 Points

    Tough lecture to follow conceptually.. any other resources?

    Posted July 14, 2014 5:51am by Justin McAuley
    Justin McAuley
    6,643 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    3 Answers

  • Jiecao Wang
    Jiecao Wang
    5,833 Points

    Line 72 ";" needed?

    Posted June 25, 2014 11:53pm by Jiecao Wang
    Jiecao Wang
    5,833 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    1 Answer

  • Nicholas Lee
    Nicholas Lee
    12,474 Points

    What's the point of parameters in a function?

    Posted June 12, 2014 4:42pm by Nicholas Lee
    Nicholas Lee
    12,474 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    2 Answers

  • orange sky
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    orange sky
    Front End Web Development Techdegree Student 4,945 Points

    (function(){...})(arg1, arg2)

    Posted June 3, 2014 1:00am by orange sky
    .a{fill-rule:evenodd;}techdegree
    orange sky
    Front End Web Development Techdegree Student 4,945 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    4 Answers

  • Michael Fraser
    Michael Fraser
    19,084 Points

    Bit Confused about the last section of this...

    Posted May 12, 2014 11:16am by Michael Fraser
    Michael Fraser
    19,084 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    3 Answers

  • Steven Pribilinskiy
    Steven Pribilinskiy
    8,400 Points

    namedFunction in global scope

    Posted April 29, 2014 2:53pm by Steven Pribilinskiy
    Steven Pribilinskiy
    8,400 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    4 Answers

  • Arthur The Dog
    Arthur The Dog
    16,070 Points

    Very confusing video

    Posted April 26, 2014 3:29am by Arthur The Dog
    Arthur The Dog
    16,070 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    3 Answers

  • Brian CI
    Brian CI
    28,971 Points

    My function is only being called once

    Posted April 18, 2014 10:31am by Brian CI
    Brian CI
    28,971 Points
    • JavaScript
    • JavaScript Foundations
    • Functions
    • Anonymous Functions

    4 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