Write a JavaScript program to perform a binary search. Write a JavaScript program to shuffle an array. Write a JavaScript program to find the leap years in a given range of years. Note : Use ordinal numbers to tell their position.ġ6. Write a JavaScript program to display the colors in the following way : We have the following arrays : Go to the editorĬolor = Write a JavaScript program to remove duplicate items from an array (ignore case sensitivity). Write a JavaScript program to add items in an blank array and display the items. Write a JavaScript program to compute the sum and product of an array of integers. Write a JavaScript program to find the sum of squares of a numeric vector. Write a JavaScript program which prints the elements of the following array. For example if you input 'The Quick Brown Fox' the output should be 'tHE qUICK bROWN fOX'. Write a JavaScript program which accept a string as input and swap the case of each character. Write a JavaScript program to find the most frequent item of an array. Write a JavaScript program to sort the items of an array. For example if you accept 025468 the output should be 0-254-6-8. Write a JavaScript program which accept a number as input and insert dashes (-) between each two even numbers. Write a simple JavaScript program to join all elements of the following array into a string. Passing a parameter 'n' will return the last 'n' elements of the array. Write a JavaScript function to get the last element of an array. Passing a parameter 'n' will return the first 'n' elements of the array. Write a JavaScript function to get the first element of an array. Go to the editorĬonsole.log(array_Clone(])) ģ. Write a JavaScript function to clone an array. Write a JavaScript function to check whether an `input` is an array or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |