JavaScript Flashcards

1
Q

Lines of code that Javascript will intentionally ignore.

A

Comments

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

In computer science, what is data?

A

Anything that is meaningful to the computer

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

How many different data types does Javascript have?

A

7

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

What does string mean?

A

Any sort of text

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

What is number?

A

A number

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

What is undefined?

A

Something that hasn’t been defined

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

What is null?

A

Nothing

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

What is a boolean?

A

True or false

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

Symbol

A

An immutable primitive value that is unique

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

What is an object?

A

Stores a lot of different key value pairs

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

Where do you set data?

A

Into a variable

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

What does a variable allow computers to do to data?

A

Store and manipulate it in dynamic fashion

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

How do you declare a variable?

A

var keyword

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

What is it common to set something to?

A

A string

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

How many ways can you declare a variable?

What are they?

A

3

Var, let, const

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

Where can var be used?

A

Throughout the entire program

17
Q

Where can let be used?

A

Within the scope of where you declared it

18
Q

What is const?

A

A variable that can never change

19
Q

What happens if you try to change a const?

A

ERROR

20
Q

What is the equal sign?

A

Assignment operator

21
Q

How do you assign a variable?

A

var (blank);

22
Q

Why should you use a semicolon?

A

So you know where the end of the line is

23
Q

var b = 2;

What does this line mean?

A

2 is being assigned to B.

24
Q

How would you assign 7 to a?

A

a = 7;

25
Q

What does console.log do?

A

Allows you to see things in the console

26
Q

What does uninitialised mean?

A

The value is undefined and we have not set it to anything

27
Q

Variable names and function names in JS are what?

A

Case sensitive

28
Q

What does increment a number mean?

A

To add 1 to it

29
Q

What is a quicker way to increment a number?

A

myVar++

30
Q

What are decimals referred to in JS?

A

Floats

31
Q

What does hard coding mean?

A

Putting something into your source code

32
Q

What is JavaScript?

A

Allows you to store and manipulate data (what you see on a website)

33
Q

What does osm stand for?

A

Open street map

34
Q

What is a style tag?

A

It’s how you control the format of what things look like

35
Q

How does JSON Parse work?

A

It takes the data that’s in text format and converts it to a JavaScript

36
Q

What is JSON?

A

JavaScript Object Notation and is an open standard data interchange format