Intro Flashcards
Data is printed, or logged, to the console, a panel that displays messages, with
console.log()
characters wrapped in single or double quotes:
Any grouping of characters on your keyboard (letters, numbers, spaces, symbols, etc.) surrounded by single quotes: ‘ … ‘ or double quotes “ … “. Though we prefer single quotes.
Strings
Some people like to think of string as a fancy word for text.
In JavaScript, the _________ keyword refers to an object, a collection of data and actions, that we can use in our code.
Console
will comment out multiple lines and is denoted with /* to begin the comment, and */ to end the comment.
A multi-line comment
will comment out a single line and is denoted with two forward slashes // preceding it.
A single line comment
This data type only has two possible values— either true or false (without quotes). It’s helpful to think of booleans as on and off switches or as the answers to a “yes” or “no” question.
Boolean
This data type represents the intentional absence of a value…
represented by the keyword ____ (without quotes).
Null
A newer feature to the language, ______ are unique identifiers, useful in more complex coding.
Symbols
When a + operator is used on two strings, it appends the right string to the left string:
This process of appending one string to another is called
String Concatenation
We call, or use, these _______ by appending an instance with a period (the dot operator), the name of the method, and opening and closing parentheses: e.g. ‘example string’.methodName().
Methods