Javascript Programs Questions
Javascript Programs Questions
Example x = 32243;
alphabetical order.
Note: Assume punctuation and numbers symbols are not included in the passed
string..
3. Write a JavaScript function that accepts a string as a parameter and counts the
Note : As the letter 'y' can be regarded as both a vowel and a consonant, we do
Expected Output : 5
4. Write a JavaScript function that accepts a string as a parameter and converts
the first letter of each word of the string in upper case.
Expected Output :
6. Write a JavaScript program that accept two integers and display the larger
Test Data :
document.write(array_Clone([1, 2, 4, 0]));
[1, 2, 4, 0]
[1, 2, [4, 0]]
9. Write a simple JavaScript program to join all elements of the following array
into a string.
Expected Output :
"Red,Green,White,Black"
"Red,Green,White,Black"
"Red+Green+White+Black"
String.
15. Write a JavaScript function for Factorial, Prime number, Fibonacci Series for a
given number.