A collection of JavaScript Exercises to improve coding skills.
- Write a JavaScript function to check whether an
input
is a string or not. - Write a JavaScript function to check whether a string is blank or not.
- Write a JavaScript function to split a string and convert it into an array of words.
- Write a JavaScript function to extract numbers from a string.
- Write a JavaScript function to capitalize the first letter of each word in a string.
- Write a JavaScript function to concatenates a given string n times (default is 1).
- Write a JavaScript function to insert a string within a string at a particular position (default is 1).
- Write a JavaScript function to count the occurrence of a substring in a string.
- Write a JavaScript function to alphabetize a given string. Alphabetize string : An individual string can be alphabetized. This rearranges the letters so they are sorted A to Z.
- Write a JavaScript program to find the most frequent character in a given string except for space.
- Write a JavaScript function to reverse words in a given string.
- Write a function which returns the maximum of two number.
- Fizbuzz algorithm.
- Write a function which checks number till given input/parameter is odd or even.
- Write a function which checks and count the truthy values from an array.
- Write a function which checks and prints only the string type properties of an object.
- Write a function which Calculate the sum of marks provided in an array, average it and also show Grad.
- Write a function which show or print Prime Number upto provided range.
- Write a function which show or print Sum of Arguments passed as an Array.
- Create a method named 'includes' which checks an element exists in an array.
- Create a method named 'excludes' which cut/excludes values from existing array and push to new array.
- Create a function which counts the search occurances from an array.
- Create a function which returns the maximum ie. largest number from an array.
- Filter the array of students with Higest Ranking, Sort on Ranking, finally Show the Names
- Create an Object for Students and Address with various Properties and Methods.
- Create an Object of Students by using Factory and Constructor methods.
- Write function to check object equality.