0% found this document useful (0 votes)
3 views1 page

JavaScript Programs

Uploaded by

zyaaryan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

JavaScript Programs

Uploaded by

zyaaryan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

javaavaScript Programs

1. Write a program yo tnjsndccheck if a number is even or odd.


2. Write a program to find the largest of three numbers.
3. Write a program to reverse a string.
4. Check if a string is a palindrome.
5. Find the factorial of a number.
6. Print the multiplication table of a number.
7. Convert Celsius to Fahrenheit.
8. Find the sum of numbers in an array.
9. Swap two numbers using a temporary variable.
10.Count vowels in a given string.
11.Write a program to implement a calculator (add, subtract, multiply,
divide)
12.Capitalize the first letter of each word in a sentence.
13.Write a program to validate an email address using RegEx.
14.Create a button that changes the background color randomly on click.
15.Build a simple to-do list using HTML, CSS, and JavaScript.
16.Create a form and validate required fields on submit.
17.Check if a number is a prime number.
18.Count the number of words in a string.
19.Generate the Fibonacci series up to N terms.
20.Show/hide a paragraph using a toggle button.

You might also like