Q. JavaScript Code can be called by using
β
Correct Answer: (D)
Function/Method
Explanation:
In JavaScript, code execution is typically triggered using functions or methods. Functions are reusable blocks of code that can be called whenever needed.
Why the other options are incorrect:
- (A) RMI (Remote Method Invocation) β Used in Java (not JavaScript) for calling methods remotely over a network.
- (B) Triggering Event β Events (like onclick, onload) can trigger