Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. AJAX - a way of getting info form api to javascript
  2. - can refer to any web request from inside the code (from an api)
  3.  
  4. JQuery Library - used in 90% of websites
  5. - standardized code between browsers
  6.  
  7.  
  8. In JS hashes are treated as objects so you can use the [] notation or the .exampleattribue notation
  9.  
  10. JS is asynchronus language so if a funcition is delayed it is put in a queue and other functions
  11. will run even if written lower down in the code
  12.  
  13. Callback - as soon as a JS funciton runs the next will run
  14. ex) setTimeout(function() {
  15. console.log("First Task Done!");
  16. setTimeout(function() {
  17. console.log("Second Task Done!");
  18. setTimeout(function() {
  19. console.log("Third Task Done!");
  20. setTimeout(function() {
  21. console.log("Fourth Task Done!");
  22. }, 2000);
  23. }, 2000);
  24. }, 2000);
  25. }, 2000);
Add Comment
Please, Sign In to add comment