array programs

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1.

Write a function to reverse an array of integers in-place


2. Write a function to check if a given string is a palindrome (reads the same
backward as forwards). Ignore spaces, punctuation, and capitalization.
3. write JavaScript Program to Sort Words in Alphabetical Order in array using
sort method
4. Given an array of integers, count the number of occurrences of each element
and return the count in an Array of String.
5. Given a sorted array, remove duplicates in-place such that each element
appears only once and return the new length.
6. write a JavaScript Program to Reverse a String " hello world"
7. write JavaScript Program to Count the Number of Vowels in a String "JavaScript
program"
8. write JavaScript Program to Check Whether a String Starts and Ends With Certain
Characters "webtechnology"
9. write JavaScript Program to Compare Two Strings take any two strings and
compare.
10 write program to replace all occurrence of a string 'Mr Red has a red house and
a red car' replace all red with blue ?
11. write JavaScript Program to Empty an Array ?
12. write JavaScript Program to Add Element to Start of an Array ?
13. write JavaScript Program to Compare Elements of Two Arrays ? take two arrays
and comapre ?
14. write JavaScript Program To Check If A Variable Is undefined or null ?
15. write JavaScript Program to Remove Specific Item From an Array

You might also like