

JWD JS Function, Scoping, and program flow Overview
Presentation
•
Computers
•
University
•
Hard
Lazaro Alsina
Used 3+ times
FREE Resource
9 Slides • 0 Questions
1
JWD JS Function, Scoping, and program flow Overview
by Lazaro Alsina
2
Today's overview:
Functions
Scoping
Arrays
Loops
Iterators
3
Function in detail
What is a function
Calling a function
Functions and arguments
default parameters
Return
Helper functions
Arrow Functions
Concise Body Arrow Function
4
Ways to make functions in JS
A function is a group of code that is reused whenever it is called upon.
The purpose is to reduce DRY, hard coding, and make the program more modules.
There are a few ways you can create a function.
5
Calling a function
There are a few ways of calling a function.
Depending on your case use will depend on what you or prefer to use.
Either you write a function statement or an expression function. Use what works best for you.
6
Functions and its Arguments
Functions can have arguments, meaning we can put values for a function to execute and give us a result which is the answer.
Keep in mind, we have been using arguments a lot when using
console.log(argument).
7
Default Parameters:
Many functions, including methods that are like functions, have a default setting.
These settings are made by the programmer and can be placed inside its parameters.
8
Return:
When we make functions, what is inside in most languages are private by default, meaning no other program can access the data inside but we can get an answer by using return.
What is return is what we call the output from function.
9
Helper Functions
When using functions, we can call a function within a function!
In short, we are calling a function within a function to give us a result which then the function that call it is now going to calculate it base on what was programmed.
JWD JS Function, Scoping, and program flow Overview
by Lazaro Alsina
Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
7 questions
Vetores em C
Presentation
•
University
7 questions
PCIT21 WEEK 2
Presentation
•
University
7 questions
Python
Presentation
•
University
6 questions
MAPAS 3D
Presentation
•
University
6 questions
WEB3-EGC-COBIT
Presentation
•
University
7 questions
Primer encuentro asincrónico- Módulo de Idioma Inglés- FCEFYN
Presentation
•
University
6 questions
Web Technologies
Presentation
•
University
6 questions
Week 3 CAD 154
Presentation
•
University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
20 questions
Brand Trivia
Quiz
•
9th Grade - University
10 questions
Would you rather...
Quiz
•
KG - University
21 questions
Mapa países hispanohablantes
Quiz
•
1st Grade - University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
12 questions
CE 2b Early Documents Review
Quiz
•
7th Grade - University
30 questions
Multiplying and Dividing Integers
Quiz
•
6th Grade - University
13 questions
Back to School
Quiz
•
KG - University