JAVASCRIPT
ASSIGNMENT-2
1. Write a JavaScript function that takes a string as input and returns the reverse of that
string.
2. Create a function that counts the number of vowels (a, e, i, o, u) in a given string.
3. Create a function that finds the maximum and minimum value in an array.
4. Write a function that calculates the sum of all numbers in an array.
5. Write a function that calculates and returns the grade (A, B, C, D, E) based on a given
numeric score. (A-Score>=90, B-Score >=80, C-Score >=70, D-Score>=60, EScore<60).
6. Create an object representing a book with properties like title, author, and
published Year. Write a function to display the book details.
7. Create the nested array that stores 5 employee details (Name, Email, Phone Number,
Address). Display those employee details in Table format in the page.