Question · JavaScript and TypeScript course · Module 1: JavaScript Basics
for Loop
What three elements does the for loop header contain?
Answer options
- Name, parameters, function body
- Initialization, condition, update (e.g. i++)
- Declaration, assignment, return
- Input, process, output
Show the answer
Correct answer:
- Initialization, condition, update (e.g. i++)