Monday July 18
Interruptions
NONE
Standups
- What is going well?
- What is not going well (what are you struggling with)?
- What's something you'd like to share not about code?
- What's something you've learned
Common Wins
- JS is getting better
- Some stress management
Common Struggles
object-fit- Stress Management
- Progress on puppies
Topics
- Scope - Can I use a variable now?
varand function declarations (named functions)- scopes to current the current function
- Available to all children function
- Not available to any thing outside of the current function
- hoists declaration (not assignment) to the top of the current function
- scopes to current the current function
let- scopes to the current function or "block" (
if,else,for,while)- Any time you see squirley braces,
letcan't get out of that!
- Any time you see squirley braces,
letdoes not hoist
- scopes to the current function or "block" (
const- must be assigned when declared
- cannot be changed within the current scope
- scopes to the current function or "block" (
if,else,for,while)- Any time you see squirley braces,
constcan't get out of that!
- Any time you see squirley braces,
constdoes not hoist
- Hoisting -
letvsvarvsconstand what are function declarations
function hoisting() {
console.log('hello world');
var x = 'Foo';
}
function whatComputerIsDoing() {
var x;
console.log('hello world');
x = 'Foo';
}
- What's
this - What are all these
=>doing- Implicit
return thisdoesn't switch
- Implicit
FAQ
- [ ] Time Management
- [ ] Form Submit Events
- [ ] Reload after adding
- [ ] Object Fit
- [ ] HTTP Methods
- [ ] Toggling Classes for animation
- [ ] Animating Class Toggling
- [ ] Adding Items to the App
- [ ] Showing updates after adding items
- [ ] Saving and updating values to the server
- [ ] Map and
forEach
Lab Time
- GIT for HW 08
Code
https://github.com/tiy-tn-fee-2016-summer/lesson-week-06/tree/day-01