

JWD JS Function, Scoping, and program flow Overview
Presentation
•
Computers
•
University
•
Hard
Lazaro Alsina
Used 3+ times
FREE Resource
9 Slides • 0 Questions
1
by Lazaro Alsina
2
Functions
Scoping
Arrays
Loops
Iterators
3
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
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 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
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
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
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.
by Lazaro Alsina
Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
7 questions
Lesson2-CSE101
Presentation
•
University
7 questions
ICTM Enterprise Systems
Presentation
•
University
7 questions
TIC IV
Presentation
•
University
6 questions
MAC 2 | Lesson 5-7 | Wrap it Up
Presentation
•
KG
6 questions
Materiale video educaţionale
Presentation
•
University
6 questions
Sistemas Operativos Móviles
Presentation
•
University
6 questions
Tecnología_Nathaly Pérez
Presentation
•
University
7 questions
C++ Output (Print Text)
Presentation
•
University
Popular Resources on Wayground
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Preterito vs. Imperfecto
Quiz
•
KG - University
15 questions
TOEFL Structure - TEST 2
Quiz
•
University
25 questions
Cell Transport
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
4 questions
Exit ticket for the end of class: Spotlight
Quiz
•
KG - Professional Dev...
12 questions
Hurricane or Tornado
Quiz
•
3rd Grade - University