mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-10 16:54:24 +02:00
adding captions to call out video content
This commit is contained in:
@@ -10,6 +10,9 @@ When we think about writing code, we always want to ensure our code is readable.
|
||||
|
||||
[](https://youtube.com/watch?v=XgKsD6Zwvlc "Methods and Functions")
|
||||
|
||||
> Click the image above for a video about methods and functions.
|
||||
|
||||
|
||||
## Functions
|
||||
|
||||
At its core, a function is a block of code we can execute on demand. This is perfect for scenarios where we need to perform the same task multiple times; rather than duplicating the logic in multiple locations (which would make it hard to update when the time comes), we can centralize it in one location, and call it whenever we need the operation performed - you can even call functions from other functions!.
|
||||
|
Reference in New Issue
Block a user