Question:

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
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Web development involves two main environments: the client-side and the server-side.
Server-side scripting languages run on the web server. They are used to generate dynamic web pages, interact with databases, and handle business logic. Examples include PHP, Python, Ruby, Java (with Servlets/JSP), and Perl. Client-side scripting languages run in the user's web browser. They are used to make web pages interactive, manipulate the Document Object Model (DOM), validate forms, and communicate with the server asynchronously (AJAX).
Let's analyze the options:
(A) Java, (C) Ruby, and (D) Perl are all primarily used as server-side languages in web development.
(B) JavaScript is the quintessential client-side scripting language. It is supported by all modern web browsers and is the foundation of interactive web front-ends.
Was this answer helpful?
0
0