Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Frameworks
- Angular - made by Google
- Backbone - backend framework
- Knockout
- Ember
- React
- VueJS - newer, and fast
- Writing plain vanilla JS can do most of the things frameworks do, but frameworks makes it faster to write, though less flexible
- Two way binding
- Where it is stored and where it is displayed are connected, if you change one it changes the other
- In Vue writing a for loop
- <li v-for="review in reviews">{{ review }}</li>
- formatted as blockvariable in array
- Arrays are ordered lists, hashes are unordered lists
- Array is a list of elements denoted by [] with elements separated by commas
- Hashes are lists of key value pairs, with both key and value separated by commas
- JS Functions written in twi different ways
- standard/traditional syntax
- function exampleFunction() {
- //logic
- }
- first citizen function
- {exampleFunction: function(arg) { logic }, time: "7:30pm"};
- or
- var exampleFunction = function() {
- };
- Objects must be able to store behavior (what it does) and attributes (what it is)
- Strings can act as arrays themselves so you can run methods on strings as if they were arrays
Add Comment
Please, Sign In to add comment