Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- const variableName - a constant variable, once you assign a value to this variable, it can not be changed
- var variableName - a normal variable, its value can be changed whenever
- let variableName - same thing as var
- loops:
- for (var x = 0; x < 5; x++) {
- stuff here;
- stuff here;
- }
- while (expression) {
- stuff here;
- stuff here;
- }
- if/else:
- if (condition) {
- stuff here;
- stuff here;
- }
- else if (condition) {
- stuff here;
- stuff here;
- }
- else {
- stuff here;
- stuff here;
- }
- functions:
- function myFunction() {
- stuff here;
- return stuff;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement