GWAPT · Question #119
Which of the following is an example of a client-side scripting language?
The correct answer is C. JavaScript. JavaScript runs directly in the browser on the user's machine, making it the definitive client-side scripting language - it manipulates the DOM, handles events, and updates pages without a server round-trip. Why the distractors are wrong: A. Python - executes on the server (or…
Question
Which of the following is an example of a client-side scripting language?
Options
- APython
- BPHP
- CJavaScript
- DRuby
How the community answered
(60 responses)- A5% (3)
- B8% (5)
- C73% (44)
- D13% (8)
Explanation
JavaScript runs directly in the browser on the user's machine, making it the definitive client-side scripting language - it manipulates the DOM, handles events, and updates pages without a server round-trip.
Why the distractors are wrong:
- A. Python - executes on the server (or locally via runtime); browsers don't natively run Python
- B. PHP - a server-side language; the server processes PHP and sends only HTML/CSS/JS to the browser
- D. Ruby - also server-side, commonly used in frameworks like Rails; the browser never sees Ruby code
Memory tip: Think "JavaScript = Just Send" - it's the only one of the four that gets sent to and run by the browser itself. If a language needs a server to execute before the browser sees results, it's server-side.
Community Discussion
No community discussion yet for this question.