Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Learn JavaScript: Functions and Scope

via Codecademy

Overview

Define and reuse logic with functions and scope variables for effective data access.

Continue your JavaScript learning journey with Learn JavaScript: Functions and Scope. Define and reuse logic with functions and scope variables for effective data access to build the foundation for complex JavaScript programs.



### Skills you’ll gain
* Define and reuse logic with functions.
* Pass data through functions and return results.
* Identify global and block-level scopes.

### Notes on prerequisites
We recommend that you complete [Learn JavaScript: Fundamentals](https://www.codecademy.com/learn/learn-javascript-fundamentals) before starting this course.

Syllabus

  • Functions: Learn about JavaScript function syntax, passing data to functions, the return keyword, ES6 arrow functions, and concise body syntax.
    • Lesson: Functions
    • Project: Rock, Paper, or Scissors
    • Project: Sleep Debt Calculator
    • Quiz: Functions
  • Scope : Learn about global and block level scope in JavaScript.
    • Lesson: Scope
    • Project: Training Days
    • Quiz: Scope
    • Informational: Next Steps

Taught by

Kenny Lin

Reviews

4.7 rating at Codecademy based on 141 ratings

Start your review of Learn JavaScript: Functions and Scope

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.