1. Write a JavaScript function that takes a module name and code then displays their values.
2. Write a JavaScript function that takes two numbers and prints out the product.
3. Define a JavaScript object that has two properties: Module with a value of “Multimedia Fundamentals” and code with a value of “FMM200”.
4. Create a JavaScript object Course with the properties course_id, course_name and course_credit.
5. Create a JavaScript array with the module codes “ADF101”, “FMM200”,” ITE300”,”PRJ300”,”ADS200” and print out all these codes.
6. Write a JavaScript code to show the number of elements in the modules array.
7. Write a JavaScript code that adds the module code “CNF200” into the modules array.
8. Write a JavaScript code to get the last element in the modules array.
Comments
Leave a comment