Guest User

Untitled

a guest
Jun 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Frameworks
  2. Angular - made by Google
  3. Backbone - backend framework
  4. Knockout
  5. Ember
  6. React
  7. VueJS - newer, and fast
  8.  
  9. Writing plain vanilla JS can do most of the things frameworks do, but frameworks makes it faster to write, though less flexible
  10.  
  11. Two way binding
  12. Where it is stored and where it is displayed are connected, if you change one it changes the other
  13.  
  14. In Vue writing a for loop
  15. <li v-for="review in reviews">{{ review }}</li>
  16. formatted as blockvariable in array
  17.  
  18. Arrays are ordered lists, hashes are unordered lists
  19. Array is a list of elements denoted by [] with elements separated by commas
  20. Hashes are lists of key value pairs, with both key and value separated by commas
  21.  
  22.  
  23. JS Functions written in twi different ways
  24.  
  25. standard/traditional syntax
  26. function exampleFunction() {
  27. //logic
  28. }
  29.  
  30. first citizen function
  31. {exampleFunction: function(arg) { logic }, time: "7:30pm"};
  32.  
  33. or
  34.  
  35. var exampleFunction = function() {
  36. };
  37.  
  38.  
  39. Objects must be able to store behavior (what it does) and attributes (what it is)
  40.  
  41. 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