Mix Functions
Exercise 1
- Write a JavaScript program which receives an array of object of students and retrun only name of students in
an array who scored marks above 49.
Exercise 2
- Write a JavaScript function to which get random string, filter out duplicate characters/num and return
unique characters/num in an array.
Exercise 3
- Write a JavaScript program which receives 2 arguments. An array of characters and array of numbers. Return
an array of characters which matches the index in second array.
Exercise 4
- Write a JavaScript function that hides email addresses to prevent unauthorized access. (Display first 4
characters then apply ... before @ symbol)
Exercise 5
- Write a JavaScript function to calculate the sum of values in an array.
Exercise 6
- Write a JavaScript function to round up an integer value to the next multiple of 5.
Exercise 7
- Write a JavaScript function to which receives an array of object and index number as 2nd parameter. Remove
the element from an array based on index number provided and return final array.
Exercise 8
- Write a JavaScript function to decapitalize first letter of string and capitalise every other letters.
Exercise 9
- Write a JavaScript program to calculate how many numbers in the given array are less than or equal to the
given value.
Exercise 10
- Write a JavaScript function to sort (ascending order) the given array of objects based on pricing of
products.