Question:medium

Which of the following is a client-side scripting language?

Show Hint

A simple distinction: Client-side code (JavaScript, HTML, CSS) runs on your computer in your browser. Server-side code (PHP, Python, etc.) runs on the website's computer (the server).
Updated On: Jul 2, 2026
  • Java
  • JavaScript
  • Ruby
  • PERL
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: Separate where each listed language actually executes.
Some web languages run on the server before the page is even sent out to a visitor, while others run inside the visitor's own browser after the page has already loaded.
Step 2: Sort the given options into these two groups.
Java, Ruby, and Perl are all commonly used on the server side to generate pages, connect to databases, and handle backend logic, and none of them execute inside a typical browser.
Step 3: Identify the browser-native language among them.
JavaScript is built directly into every modern web browser and is used to make pages interactive, validate forms, and update content without a full reload, which makes it the classic example of a client-side scripting language.
\[ \boxed{\text{JavaScript}} \]
Was this answer helpful?
0