JavaScript Practice Questions (Mixed Set)

Programming Practice – Mixed Topics

These questions are designed to help students practice Conditionals, Loops, Arrays, Math, and Functions.

Mixed Practice Questions

1. Check number positive, negative ya zero

2. Print numbers from 1 to 10 using loop

3. Find maximum number in array

4. Calculate factorial of a number

5. Function to add two numbers

6. Check even ya odd

7. Reverse an array

8. Generate random number (1–100)

9. Function to check prime number

10. Print Fibonacci series

11. Largest of three numbers

12. Sum of all array elements

13. Square root of number

14. Function to reverse string

15. Count even numbers in array

16. Leap year check

17. Sort an array

18. Absolute value find karo

19. Function to check palindrome string

20. Print prime numbers 1–100

21. Marks ke basis pe grade

22. Remove duplicates from array

23. Power calculation

24. Function to count vowels

25. Reverse number

26. Check vowel ya consonant

27. Merge two arrays

28. Random OTP generate karo

29. Function to find square

30. Sum of digits

31. Temperature check

32. Count odd numbers in array

33. Area of circle

34. Function to find cube

35. Palindrome number check

36. Password validation (>=8)

37. Find second largest in array

38. Average of numbers

39. Function to generate OTP

40. Armstrong number check

41. Salary bonus condition

42. Array length find karo

43. Celsius to Fahrenheit

44. Function to merge arrays

45. GCD find karo

46. Electricity bill slab

47. Search element in array

48. Swap two numbers

49. Function to return largest element

50. LCM find karo

51. Discount apply condition

52. Convert array to string

53. Percentage calculate karo

54. Function to sort array

55. Perfect number check

56. Login validation

57. Replace element in array

58. Square of number

59. Function to check leap year

60. Prime number check

61. ATM withdrawal condition

62. Sum of even elements in array

63. Cube of number

64. Function to calculate BMI

65. Number divisible by 3 ya 7

66. Month se days find karo

67. Unique elements print karo

68. Simple interest

69. Function to capitalize first letter

70. Divisible by 2 and 5

71. Weekend ya weekday check

72. Frequency count in array

73. Compound interest

74. Function to return greeting message

75. Time greeting (morning/evening)


📌 Practice all questions without using built-in functions.

Prepared By Ankit Sir | Dev Team