1. Which statement best describes declarative code?
- It cannot be written in JavaScript
- It always runs faster than imperative code
- It states what result is wanted and delegates the step-by-step control flow
- It avoids using functions
Show answer
Answer: It states what result is wanted and delegates the step-by-step control flow
Declarative code focuses on the result; performance depends on the implementation.
Lesson: What Functional Programming Is