0% found this document useful (0 votes)
8 views

js practice que

Uploaded by

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

js practice que

Uploaded by

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

Understood!

Here are some coding questions suitable for beginners in JavaScript:

Write a JavaScript program to calculate the sum of two numbers.


Write a JavaScript program to find the maximum of two numbers.
Write a JavaScript program to find the factorial of a number.
Write a JavaScript program to check if a number is even or odd.
Write a JavaScript program to check if a number is prime.
Write a JavaScript program to reverse a string.
Write a JavaScript program to find the length of a string.
Write a JavaScript program to convert Celsius to Fahrenheit.
Write a JavaScript program to check if a given year is a leap year.
Write a JavaScript program to find the largest element in an array.
Write a JavaScript program to find the sum of all elements in an array.
Write a JavaScript program to remove duplicates from an array.
Write a JavaScript program to find the Fibonacci series up to a certain number of
terms.
Write a JavaScript program to check if a given string is a palindrome.
Write a JavaScript program to sort elements of an array in ascending order.
Write a JavaScript program to sort elements of an array in descending order.
Write a JavaScript program to count the number of vowels in a string.
Write a JavaScript program to find the second largest element in an array.
Write a JavaScript program to generate random numbers between a specified range.
Write a JavaScript program to shuffle elements of an array.

You might also like