JavaScript Flashcards

1
Q

What is a program?

A

a program is a set of instructions that you write to tell a computer what to do

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

what is a programming?

A

Programming is the task of writing those instructions in a language that the computer can understand.

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

JS Syntax

A

Semicolon, brackets, parentheses, quotation Marks, and other Unique characters

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

what is a variable?

A

Data buckets to store stuff and take stuff out;
data can hold data in; tells our program to remember values for us to use later on; the entry we use to store the value is called variable

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

Variables have
declaration: let age
Assignment: age=25

A
Both at the same time:
let ag=25
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Javascript is single-threaded
Synchronous aka processes one operation at a time.
True or False

A

True

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

If synchronous, how do we do stuff like make an api request and keep scrolling or clicking?

A

Thing should block, the environment

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

What is an API

A

A simple interface to make something simple.

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

DOM

A

Document Object Model

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