Monday October 26

Daily JS

Functions and Fat Arrow Syntax

var x = function() {
  console.log('hello');
};

function y() {
  console.log('world');
}

var z = () => {
  console.log('yup');
};

var a = () => {
  return 'no';
};


console.log(x);
console.log(x());
console.log(y());
console.log(z());
console.log(a());

/* Results */
// function
// "hello"
// null
// "world"
// null
// "yup"
// null
// "no"

Topics

Code

https://github.com/TIY-LR-FEE-2015-Fall/lesson-02-01

Resources

Homework

https://github.com/TIY-LR-FEE-2015-Fall/assignments/tree/master/06-css-specificity

NOTE Along with your homework, you should try to apply the concepts of BEM and organization to the homework from last Thursday. You may optionally change to using SASS for better organization, variables, and what we discussed in class today.