What are parantheses () used for?
Parantheses are used in many ways. They can be used in BEDMAS when performing operations such as (1 + 2) * 5. Paranthesis are also used to house conditions in if/else statmens or for loops. For example if (1 == 1)..., or for(i = 0; i < 5; i++). They are also used to pass in arguments for functions. For example someFunction(x, y).
What are brackets [] used for?
Brackes are used to define arrays, which is essentially a list of values. for example someArray = [1, 2, 3, 4]. Brackets can also be use to call upon a variable that references a property in an object. For example some someObj['someVar']. Finally they can be used to call on an array or the value in the array, by knowing it character placement. For example someArray[2] would output 3.
What are Braces {} used for?
Braces are you used to section off blocks of code. They appear after, functions, loops, and objects, to define a block of code. These blocks of code only concern themselves with code inside the block and they only operate when triggered by an above condition
What are Single Quotes '' used for?
Single quotes are used to define strings. For example someString = 'string'. Single quotes are also used in conjection if braces to call on properties with an object, as demonstrated above.
What are Double Quotes "" used for?
Double quoutes can be used anywhere single quotes can be used.