Day 1 Flashcards

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 ________.

A

typeof

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 _________.

A

/* */

19
Q

Shortcut to open developer tools in Chrome.

A

Ctrl+Shift+I

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!

A

Reserved

22
Q

Value taken by a variable but not yet defined.

A

Undefined

23
Q

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

A

Decimal values

24
Q

Variable name cannot start with a __________!

A

Number

25
Q

Every value is either an ___________ or __________ value.

A

Object or primitive

26
Q

Data type that means ‘empty value’.

A

Null

27
Q

Where you store or assign values to use them over and over again

A

Variable

28
Q

This means that the language is mostly based on the concept of objects for storing most kinds of data.

A

Object-oriented

29
Q

In JS, all of the Number data types are __________ numbers.

A

Floating point numbers

30
Q

Name your variables very __________. This is a convention.

A

Descriptive

31
Q

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.

A

Inline

32
Q

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.

A

src

33
Q

There is a reserved word called _______ that can be actually used as a variable name but it could cause problems so avoid it.

A

name

34
Q

We use this naming convention in JS.

A

camelCase

35
Q

When you check the typeof a null data type it will return as ________. This is a bug and should return null.

A

object

36
Q

The _______ has the data type not the variable!

A

Value

37
Q

Variables can only contain letters, numbers (as long as its not at the start), ________ and __________.

A

Underscore and dollar sign

38
Q

You can go back to some commands you’ve used by pressing _______ commands.

A

Arrow commands