In the JS language, Describe all the use cases for each of: parentheses () -e.g. '1.Execute a function var result = doSomething()

Parentheses are used to group and contain expressions and parameters. This could have multiple functions relating to functions and structures. Parentheses are used to control structure and control order of execution.

Describe brackets []

Brackets are used for an array of simple values. For instance var name = ['Jacob','Ruth','sam']

Describe braces {}

Braces are used for key value arrays and objects/properties. For instance var student = { 'name':'Ruth B', 'url':'https://www.google.com/RuthB', 'pet':'dog'}

Describe single quotes ''

Single quotes are used for consistency and accuracy. When you have to quote many things single quotes are much easier than using double quotes. Single quote and double quote does exactly same thing I think it is the matter of preference.

Describe double quotes ""

Double quote eliminate then need to escape apostrophes. Instead of writing alert( 'I\'m going to the mall') you can write alert ("I'm going to the mall"). Both of single quote and double quote does exactly same thing I think it is the matter of preference.

technical blog6 js language