📚 Practice Mode

JavaScript Functions

Learn at your own pace with hints and detailed explanations

1 / 15
Multiple Choice

What is the purpose of a function in JavaScript?

  1. To group related code together
  2. To reuse code in different parts of a program
  3. To pass data between different parts of a program
  4. All of the above