Intro Flashcards

1
Q

Data is printed, or logged, to the console, a panel that displays messages, with

A

console.log()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

Strings

Some people like to think of string as a fancy word for text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In JavaScript, the _________ keyword refers to an object, a collection of data and actions, that we can use in our code.

A

Console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

will comment out multiple lines and is denoted with /* to begin the comment, and */ to end the comment.

A

A multi-line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

will comment out a single line and is denoted with two forward slashes // preceding it.

A

A single line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

This data type represents the intentional absence of a value…

represented by the keyword ____ (without quotes).

A

Null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A newer feature to the language, ______ are unique identifiers, useful in more complex coding.

A

Symbols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

String Concatenation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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().

A

Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly