Swati Lathia

Learning ways

JavaScript Assignment

Table of Contents

Assignment

  1. Write a script that performs basic arithmetic operations in UDF.
  2. Write a script that generates a random number between 1 and 100 and displays it in UDF.
  3. Write a script that shows local and global variables.
  4. Write a script that shows conditional operators.
  5. Write a script that shows “Day of the Week” using switch case. The daynumber should be asked from the user and according to the number its shows the Day of the week.
  6. Write a script that shows “Multiplication table”. For example: 5 X 1 = 5. Number should be asked from the user.
  7. Write a script that creates an array of 5 Search Engines. Show an entire array using for loop.
  8. Write a script that adds element(s) at beginning and end of the above array.
  9. Write a script that removes element(s) from beginning and end of the above array.
  10. Write a script that shows any 5 string methods.
  11. Write a script that shows all the date methods.

Scroll to top