Skip to content

monikakonieczna/javascript-practice

Repository files navigation

JavaScript Practice

A collection of JavaScript Exercises to improve coding skills.

Exercises with arrays

Exercises with strings

  1. Write a JavaScript function to check whether an input is a string or not.
  2. Write a JavaScript function to check whether a string is blank or not.
  3. Write a JavaScript function to split a string and convert it into an array of words.
  4. Write a JavaScript function to extract numbers from a string.
  5. Write a JavaScript function to capitalize the first letter of each word in a string.
  6. Write a JavaScript function to concatenates a given string n times (default is 1).
  7. Write a JavaScript function to insert a string within a string at a particular position (default is 1).
  8. Write a JavaScript function to count the occurrence of a substring in a string.
  9. 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.
  10. Write a JavaScript program to find the most frequent character in a given string except for space.
  11. Write a JavaScript function to reverse words in a given string.

Exercises with functions and simple algorithms

  1. Write a function which returns the maximum of two number.
  2. Fizbuzz algorithm.
  3. Write a function which checks number till given input/parameter is odd or even.
  4. Write a function which checks and count the truthy values from an array.
  5. Write a function which checks and prints only the string type properties of an object.
  6. Write a function which Calculate the sum of marks provided in an array, average it and also show Grad.
  7. Write a function which show or print Prime Number upto provided range.
  8. Write a function which show or print Sum of Arguments passed as an Array.
  9. Create a method named 'includes' which checks an element exists in an array.
  10. Create a method named 'excludes' which cut/excludes values from existing array and push to new array.
  11. Create a function which counts the search occurances from an array.
  12. Create a function which returns the maximum ie. largest number from an array.
  13. Filter the array of students with Higest Ranking, Sort on Ranking, finally Show the Names

Exercises with objects

  1. Create an Object for Students and Address with various Properties and Methods.
  2. Create an Object of Students by using Factory and Constructor methods.
  3. Write function to check object equality.

Releases

No releases published

Packages

No packages published