Theory-Lectures-V2 40-49
Theory-Lectures-V2 40-49
LECTURE
FUNCTIONS CALLING OTHER
FUNCTIONS
CALLING A FUNCTION INSIDE A FUNCTION: DATA FLOW
2
2
8
3
8
8
2
SECTION
JAVASCRIPT FUNDAMENTALS – PART 2
LECTURE
REVIEWING FUNCTIONS
FUNCTIONS REVIEW; 3 DIFFERENT FUNCTION TYPES
Function declaration
Function that can be
used before it’s declared
Function expression
Essentially a function
value stored in a variable
Arrow function
Great for a quick one-line
functions. Has no this
Three different ways of writing functions, but they all work in a
keyword (more later...)
similar way: receive input data, transform data, and then output data.
FUNCTIONS REVIEW: ANATOMY OF A FUNCTION
return statement to
output a value from
the function and
terminate execution
LECTURE
LEARNING HOW TO CODE
HOW TO FAIL # AT LEARNING HOW TO CODE
He started by watching courses and reading tutorials, but he would just copy the
code without caring how it works. Sometimes he would just copy and paste code!
He didn’t reinforce what he was learning by doing small challenges or taking notes
He didn’t practice coding, and didn’t come up with his own project ideas
He quickly became frustrated when his code was not perfectly clean or efficient
John After finishing a couple of courses, he thought he now was a web developer and
(not actually…) could start applying to jobs. But he couldn’t even build an app on his own!