📲 Download Our Apps

EMI Calculator

Download EMI Calculator

SOA Games

Download SOA Games

SOA Technology App

Download SOA Technology

BMI Checker

Download BMI Checker

Task Jira

Download Task Jira

Laughing Adda

Download Laughing Adda

📅 हिंदी कैलेंडर ऐप डाउनलोड करें

Download Shubhcalendar App

30 JavaScript practice questions focused purely on if, else if, and else (perfect for coding practice & interviews

🟢 Beginner Programs (1–10)

  1. Write a program to check if a number is positive, negative, or zero.
  2. Write a program to check if a number is even or odd.
  3. Write a program to check if a person is eligible to vote (age ≥ 18).
  4. Write a program to check if a number is greater than 100.
  5. Write a program to check if a year is a leap year.
  6. Write a program to check if a character is a vowel or consonant.
  7. Write a program to check if a number is divisible by 5.
  8. Write a program to find the maximum of two numbers.
  9. Write a program to find the minimum of three numbers.
  10. Write a program to check whether a number is a multiple of both 3 and 7.

🟡 Intermediate Programs (11–20)

  1. Write a program to calculate grade based on marks.
  2. Write a program to check whether a character is uppercase or lowercase.
  3. Write a program to check if a number is a 3-digit number.
  4. Write a program to check whether a triangle is valid.
  5. Write a program to check the type of triangle (equilateral, isosceles, scalene).
  6. Write a program to check whether a number is a palindrome.
  7. Write a program to check whether a number is an Armstrong number.
  8. Write a program to calculate electricity bill using slab rates.
  9. Write a program to check if a user can login (username & password match).
  10. Write a program to check whether a number is divisible by 2, 3, or both.

🔴 Advanced Programs (21–30)

  1. Write a program to check if a number is prime.
  2. Write a program to calculate bonus based on salary and experience.
  3. Write a program to check whether a date is valid.
  4. Write a program to check whether a number is positive even, positive odd, or negative.
  5. Write a program to calculate income tax based on salary slabs.
  6. Write a program to check whether a character is a digit, alphabet, or special character.
  7. Write a program to check whether a number is divisible by 4 but not by 6.
  8. Write a program to check password strength using conditions.
  9. Write a program to determine the day of the week using number (1–7).
  10. Write a program to check whether a number is perfect or not.



Leave a Reply

AI Spiritual Tools & Interactive Experiences

Explore powerful AI-driven tools for daily guidance, spirituality, fun quizzes, and self-discovery.

Today’s Quote

Get inspiring daily quotes powered by AI to motivate and guide your day.

Explore Now

AI Tarot Card Reader

Reveal insights about your future, love, and career with AI tarot readings.

Read Tarot

Love Match Calculator

Check compatibility and love predictions using AI-based analysis.

Check Match

Fortune Cookie

Open an AI fortune cookie and receive wisdom, luck, and fun messages.

Open Cookie

Quiz Categories

Engage with knowledge-based and fun quizzes across multiple categories.

Start Quiz

Panchang Calendar

View daily Panchang, auspicious timings, tithi, nakshatra, and festivals.

View Panchang

Online Numerology

Discover your destiny number, life path, and numerology predictions.

Calculate Now

Spiritual Feeds

Stay connected with spiritual thoughts, mantras, and divine content.

View Feeds

Quiz Hub

Attempt trending quizzes on GK, spirituality, festivals, and more.

Explore Quizzes