A scripting language is a programming language which is interpreted, rather than compiled, which means that scripting languages represent a subset of all programming languages.
Object Oriented Programming (OOP) refers to using self-contained pieces of code to develop applications. We call these self-contained pieces of code objects, better known as Classes in most OOP programming languages and Functions in JavaScript.
sequence of characters
numerical values you can do math on
http://jsforcats.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
Don't forget to reference:
(stop when you reach the end of Values and Variables)
http://codepen.io/brigittewarner/pen/zqZyzX
The for statement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement or a set of statements executed in the loop: initialization, condition, final expression
The following for statement starts by declaring the variable i and initializing it to 0. It checks that i is less than nine, performs the two succeeding statements, and increments i by 1 after each pass through the loop.
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”
http://jsfiddle.net/camskene/Jkjf3/
List-like objects whose prototype has methods to perform traversal and mutation operations. Neither the length of a JavaScript array nor the types of its elements are fixed.
// javascript
upcomingShows = ["Dan Deacon", "Sharon Van Etten", "Nicholas Jaar"]
// ember template
<ul>
{{#each upcomingShows as |show|}}
<li class="upcoming-shows">{{show}}</li>
{{/each}}
</ul>
http://jasonjl.me/blog/2015/04/18/rendering-list-of-elements-in-react-with-jsx/
A collection of properties, and a property is an association between a name (or key) and a value.
var object = {
key: value
}
var planet = {
"name": "Saturn",
"planet_number": 6
}
var polygons = {
triangle: {
"sides": 3,
"color": "blue",
"types": [
{"name": "equilateral", "regular": true},
{"name": "isosceles", "regular": false},
{"name": "scalene", "regular": false}
]
},
quadrilateral: {
"sides": 4,
"some_other_thing": null
}
}
In JavaScript, functions are first-class objects, because they can have properties and methods just like any other object.
Values can be passed to a function, and the function will return a value. What distinguishes functions from other objects is that functions can be called.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_farenheit_to_celsius
A condition evaluates to either true or false
This allows us to control which statement (eg function) is run
var blogPosts = ["post1", "post2", "post3"];
var lengthOfArray = blogPosts.length;
var showAll = function() {
// some code that shows the entire list
};
var truncateList = function() {
// some code that truncates the list
// some code that adds a show more button
};
if ( lengthOfArray < 10 ) {
showAll();
else
truncateList();
}
var number = 15;
var string = "I am a string";
var aStringOfNumbers = "15";
var domObject = $("#someId"); // requires JQuery
typeof(number) // number
typeof(aStringOfNumbers) // string
number == aStringOfNumbers // true
number === aStringOfNumbers // false
var imageCount = $("#slider > img").length
for (var i = 0; i < imageCount; i++) {
// statement
}
var images = $("#slider > img");
// [
// <img id="1" alt="start" src="images/smile-emoji.jpg">,
// <img id="2" alt="1" src="images/disappointed-emoji.png">,
// <img id="3" alt="2" src="images/cry-emoji.png">
// ]
var myHonda = {
color: "red",
wheels: 4,
engine: { cylinders: 4, size: 2.2 }
};
myHonda.color
// red
myHonda.engines.size
// 2.2
var x = 11;
var y = 12;
function multiply(x, y) {
return x * y;
}
// 132
To-do lists, recipes, blogs, playlists, profile, new account, etc...
Anything you'd want an user to not only be able to read, but to also add, edit, or delete.
Resources:
https://react.rocks/tag/CRUD
http://buildwithreact.com/tutorial
https://reactforbeginners.com/
https://medium.com/@rajaraodv/a-guide-for-building-a-react-redux-crud-app-7fe0b8943d0f#.xjgubxxrb