Thursday June 16

Daily JS

Maths & Equality

var x = 2;
var y = 3;
var z = 4;
var a = '2';
var b = 'two';


console.log(x == x); // true
console.log(x == y); // false
console.log(x == a); // true
console.log(a == b); // false

// MOAR EQUALS
console.log(x === y); // false
console.log(x === a); // false

// Not Equals
console.log(x != a); // false
// MOAR NOT EQUALS
console.log(x !== a); // true
console.log(x !== z); // true

// When you see console.assert fill in the _ to make the statement true
console.assert(x - y === -1);
console.assert(x + y === 5);
console.assert(z / x === 2);
console.assert(x * y === 6);
console.assert(x % y === 2); // Remainder of division

Topics

Inspiration

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

results matching ""

    No results matching ""