JavaScript Functions 101 - Part 1: WHY do we create functions in the first place?

Опубликовано: 09 Октябрь 2024
на канале: Lisa Friedrichsen
658
7

This short screencast introduces JavaScript functions, and functional programming starting with WHY we create functions in the first place:
1. to name/document statements,
2. to efficiently reuse several statements, and
3. to control when the statements are run
The playlist then covers WHAT functions look like (various function syntax including function declarations, function expressions, arrow functions, and object methods), WHEN you run functions (user events, system events), WHERE you run functions (inline, embedded, external), and HOW functions operate (anonymous functions, arguments/parameters, return values, and more).
Notepad++, Chrome, and the Developer tools are used to break down each aspect of JavaScript functions.
Thank you for viewing! Happy Coding!
All of my YouTubes can be found at: https://learncs.w3spaces.com/