mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-16 03:34:48 +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!.
|
||||
|
@@ -10,6 +10,7 @@ Making decisions and controlling the order in which your code runs makes your co
|
||||
|
||||
[](https://youtube.com/watch?v=SxTp8j-fMMY "Making Decisions")
|
||||
|
||||
> Click the image above for a video about making decisions.
|
||||
## A Brief Recap on Booleans
|
||||
|
||||
Booleans can be only two values: `true` or `false`. Booleans help make decisions on which lines of code should run when certain conditions are met.
|
||||
|
@@ -10,6 +10,7 @@ This lesson covers the basics of JavaScript, the language that provides interact
|
||||
|
||||
[](https://youtube.com/watch?v=Q_CRM2lXXBg "Arrays and Loops")
|
||||
|
||||
> Click the image above for a video about arrays and loops.
|
||||
## Arrays
|
||||
|
||||
Working with data is a common task for any language, and it's a much easier task when data is organized in a structural format, such as arrays. With arrays, data is stored in a structure similar to a list. One major benefit of arrays is that you can store different types of data in one array.
|
||||
|
Reference in New Issue
Block a user