type
. Examples of common types are:'single quotes'
and "double quotes"
have not special behaviour to them and ultimately the choice between them comes down to the situation at hand, and style preferences${}
. This is called a template string and it looks like this:true
or false
. They are binary, and are often used for conditional statementsβ['some text', 1, 2, 3.14, 'some more text']
. The comma separates each of the items, so in this case, the array contains 5 items.{ myKey: 'my Value' }
. The values can be of any type, such as the ones listed above here. There are some limitations around what you can use as a key, but generally speaking if you stick with a short, descriptive (of the purpose of the value) word, You will generally do okay.