Multiple choice technology web technology

To keep the browser from performing a script as soon as it is loaded you need to write the script as a what ?

  1. function

  2. delay

  3. performance

  4. Flexibility

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Wrapping code in a function prevents it from executing immediately when the page loads. Functions only run when explicitly called. This is essential for event handlers and code that should run on user interaction rather than page load.