Skill Set 3 – Client Side Scripting (JavaScript)Class 11 Information Technology Chapter 0 Notes – Maharashtra Board

Textbook: Information Technology – Class 11 (Balbharati, official free PDF) · pages 85

Skill Set 3 lists four JavaScript practicals: number programs with prompt and if-else, more number checks, string functions, and event-driven programs with buttons. This page teaches the JavaScript you need, then gives a complete, tested program for every task in SOP 1 to SOP 4, with what the screen shows and the errors students usually make. Tags are shown in square brackets on this page: [script] means the script tag typed with angle brackets, [/script] its closing tag. JavaScript code itself is written exactly as you type it.

🎧 Listen to the summary

Summary: Skill Set 3 – Client Side Scripting (JavaScript)

JavaScript runs inside the browser and adds logic to an HTML page. Code goes between [script] and [/script] in the head or body. prompt() reads input as text, parseInt() or parseFloat() turns that text into a number, alert() or document.write() shows the result, and if / else if / else chooses what to do.

SOP 1 and SOP 2 are number programs: multiply by 3, find the larger of two numbers, decide positive, negative or zero, test two numbers for equality, find a square, and check for multiples of 3 or 7 with the remainder operator %.

SOP 3 uses strings: the length property counts characters, toLowerCase() and toUpperCase() change case, and comparing length with 4 decides whether the string has at least 4 characters.

SOP 4 is event-driven: a function runs only when a button is clicked (onClick). It reads text boxes through the form (form1.t1.value), uses isNaN() to check whether an entry is a number, and calculates addition and division of two numbers, guarding against division by zero.

Good habits: declare variables with var (or let), convert input before doing maths, use == or === to compare and = only to assign, end statements with semicolons, and open the browser console (F12) to see errors.

Key points to remember

  • prompt() always returns text — convert with parseInt() (whole numbers) or parseFloat() (decimals)
  • Without conversion, '5' + '3' gives '53', not 8
  • if (condition) { … } else { … } — only one block runs
  • n % 3 == 0 means n is a multiple of 3
  • str.length gives the number of characters (it is a property — no brackets)
  • str.toUpperCase() and str.toLowerCase() return a new string in that case
  • isNaN(x) is true when x is not a number
  • onClick='fname()' on a button calls the function when clicked
  • form1.t1.value reads (or sets) the text of box t1 in form form1
  • Dividing by 0 gives Infinity — check the divisor first
Want a teacher to explain Skill Set 3 – Client Side Scripting (JavaScript)?

Get a ✓ Verified tutor for “Skill Set 3 – Client Side Scripting (JavaScript)” — live online or at home. We aim to suggest up to 3 tutors within 24 hours.

Get a tutor for this chapter →

👩‍🏫 Class 11 Information Technology classes — live online, request a call back

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
We call you backOur team asks what your child needs, then shares timings and fees.
Home tutor?We are still building our list of home tutors — ask on the call if there is one near you.

Keep learning