Day 1 Flashcards

(38 cards)

1
Q

Data type that is unique and cannot be changed. Not important to learn right now

A

Symbol

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

Press this key on your keyboard to execute the code in the Console tab.

A

Enter

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

Value is primitive, only if it’s not an _______.

A

Object

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

A data type which is a sequence of characters.

A

String

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

Large integers than the Number type can hold.

A

BigInt

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

This means that the language is a lot easier to write and to learn because it abstracts almost everything.

A

High-level

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

We use comments in JS too! To write a single line comment type ________.

A

//

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

A data type which is a Logical type: true or false.

A

Boolean

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

You need to use ________ (single or double) when creating a string!

A

Quotes

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

JS is a _________, __________, and multi-__________ programming language.

A

JS is a high-level, object-oriented, multi-paradigm programming language.

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

This means that we can use various programing styles such as imperative and declarative.

A

Multi-paradigm

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

What code to use when you want to alert or pop up a string ‘Hello World’ in the browser?

A

alert(”Hello World!”)

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

Use all _________ letters when naming a variable that is constant.

A

Uppercase

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

We used an HTML _________ tag inside of the head tag and we put some line of JS code there.

A

script

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

The most fundamental unit of info in programming.

A

Value

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

To determine the type of a value, use an operator called ________.

17
Q

The script tag can be inside of the _______ tag or the ______ tag, it has its differences which will be discussed later.

A

head or body tag

18
Q

To use multi line comment _________.

19
Q

Shortcut to open developer tools in Chrome.

20
Q

JavaScript has __________ which means JS automatically determines the data type you assigned in a variable. We do not need to manually define what data type we are using like in other programming languages. This also means that a variable can be changed into any data type (this could cause problems which is why TypeScript is utilized).

A

Dynamic typing

21
Q

Variables cannot be named after a _________ keyword!

22
Q

Value taken by a variable but not yet defined.

23
Q

Numbers always have ____________ even if you explicitly did not put any.

A

Decimal values

24
Q

Variable name cannot start with a __________!

25
Every value is either an ___________ or __________ value.
Object or primitive
26
Data type that means ‘empty value’.
Null
27
Where you store or assign values to use them over and over again
Variable
28
This means that the language is mostly based on the concept of objects for storing most kinds of data.
Object-oriented
29
In JS, all of the Number data types are __________ numbers.
Floating point numbers
30
Name your variables very __________. This is a convention.
Descriptive
31
Open the HTML file, then we write JS code in what we called an ______ script, basically a JavaScript code written inside of an HTML file.
Inline
32
We then create an external JS file (script.js) and link it by using a _______ attribute. Because its not okay to put JS code in the HTML file. This also makes it more organized.
src
33
There is a reserved word called _______ that can be actually used as a variable name but it could cause problems so avoid it.
name
34
We use this naming convention in JS.
camelCase
35
When you check the typeof a null data type it will return as ________. This is a bug and should return null.
object
36
The _______ has the data type not the variable!
Value
37
Variables can only contain letters, numbers (as long as its not at the start), ________ and __________.
Underscore and dollar sign
38
You can go back to some commands you’ve used by pressing _______ commands.
Arrow commands