Comments
Conditions
Loops
Scope
Keep Learning More
| Variables
answer + 1; // 43 duckSays + "quack"; // quack quack catNames[2]; // zoro cat.age = 11; // sets cat age to 11 Intervals / Timeouts
DOM / Document Object Model
| Functions
Functions (other ways)
All these functions return 2 addTogether(1, 1); addEm(1, 1); add(1, 1); myObj.add(1, 1); myObj.addEm(1, 1); Classes / reusable objects
Events
Often events are a better alternative than intervals. Events are fired only when triggered. Intervals happen regardless. In the above example, callMeShirley will only be triggered when the button is clicked.Here is a list of events jQuery
jQuery is a library that can help us when we write javascript for the browser. As seen in the example above, the jQuery library solves a problem for us. It abstracts away subtle browser inconsistencies for us. Use jQuery whenever you can to make your code easier to read, understand and maintain. There are also thousands of jQuery plugins too and you are likely to use some to enhance your website. |
Cheatography
https://cheatography.com
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets