Thursday March 3

Daily JS

Arrays and Objects (all ES6 like)

var x = [1, 2, 3];
var y = [1, 2, 3];
var z = [x, y];
var a = {'something': x, another: 'hello'};
var b = {x, y};
var c = {x, y};
var d = c;

console.log(x === y);
console.log(x == y);
console.log(x[0]);
console.log(y[0] === x[0]);
console.log(z[0] === x);
console.log(a.another);
console.log(a['something']); // How far does it go?
console.log(b === c);
console.log(c === d);

/* Results (Printed statements from console.logs) */
//
//
//
//
//
//
//
//
//

Topics

Inspiration

Octocat Grid

Octocat Grid

Tumblr Splash Page

Tumblr Splash Page

Exercise & Lesson Code

https://github.com/TIY-TN-FEE-2016-spring/lesson-01-04

Lab

Video

Content Driven Layouts with Flexbox

Exercise

Flexbox Froggy

Homework

https://github.com/TIY-TN-FEE-2016-spring/assignments/tree/master/04-surf-and-paddle

Resources

results matching ""

    No results matching ""