This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Booleans | |
* | |
* Can eather be true or false | |
*/ | |
var myBoolean = true; | |
/** | |
* Numbers | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Functions | |
* | |
* Think of functions as reusabel code blocks. | |
* The code inside is something that you want to call often. | |
* And you can pass them a value. | |
*/ | |
function renderComment(comment) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* If Statements | |
* | |
* They have a condition, that is true or false. | |
* Think of them as boolean. | |
*/ | |
var condition = true; | |
if (condition) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Manipulate the DOM | |
* | |
* Therefor we have to find the element in the DOM and then we can change it | |
*/ | |
// vanilla | |
var element = document.getElementById('my-id'); | |
element.innerHTML = 'Hello World!'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Objects can have propperties and methods. | |
* | |
* Think of it as an abstraction of real world objects. | |
* | |
* There is much more to cover about objects!-) | |
*/ | |
var person = { | |
age: 32, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/uniquename/gulp_starter_light | |
cd gulp_starter_light | |
npm install | |
gulp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myArray = ['Apples', 'Bananas', 'Pears', 'Oranges']; | |
/* | |
var myArray = [{ | |
id: 55675, | |
title: 'hey there', | |
body: 'that where really great news!' | |
}, { |