CS Foundations Flashcards
1
Q
What are primitive data types?
A
Primitive Data Types in JS are:
- Number
- Boolean
- String
- Undefined
- Null
Primitive Data Types are Immutable
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.
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.