CS Foundations Flashcards

1
Q

What are primitive data types?

A

Primitive Data Types in JS are:

  1. Number
  2. Boolean
  3. String
  4. Undefined
  5. Null

Primitive Data Types are Immutable

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

What is the difference between a parameter and an argument?

A

A parameter is a way to declare a variable passed inside your function. It is also an alias for the argument.

An argument is the actual value.

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

What is the difference between Declarative programming and Imperative Programming?

A

Declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow.

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