Theory-Lectures-V2 60-69
Theory-Lectures-V2 60-69
EXAMPLE
Make sure you 100% understand the
1 problem. Ask the right questions to get
a clear picture of the problem Project Manager: “We need a function
that reverses whatever we pass into it”
4 function reverse(value)
Divide and conquer: Break a big
2 if value type !string || !number || !array
problem into smaller sub-problems.
return value
SECTION
DEVELOPER SKILLS & EDITOR SETUP
LECTURE
DEBUGGING (FIXING ERRORS)
WHAT IS A SOFTWARE BUG?
reverse([1, 3, 5, 7])
Unexpected result: the array
is scrambled, NOT reversed.
So there is a bug in the A real bug which was
reverse function Ō causing an error in Harvard’s
[5, 1, 7, 3]
computer in the 1940s
Isolating where
Becoming aware Preventing it from
exactly the bug is Correct the bug
that there is a bug happening again
happening in code
JAVASCRIPT IN THE
BROWSER: DOM AND
EVENTS
FUNDAMENTALS
SECTION
JAVASCRIPT IN THE BROWSER: DOM
AND EVENTS FUNDAMENTALS
LECTURE
WHAT'S THE DOM AND DOM
MANIPULATION
WHAT IS THE DOM?
DOM