Emerging Technology Lab
Assignment 5
[Link] & [Link]
1. Create a module in [Link] containing a function to reverse a number. Use ES6 default
export to export the function from the module. Import the module in a separate file
and test the reverse function.
2. Create a module in [Link] that contains several functions for different arithmetic
operations like addition, subtraction, multiplication, and division. Use ES6 export to
export all the functions from the module and use them in a separate file.
3. Write a JavaScript class containing several functions to perform file read, write,
append, and delete operations. Use a constructor to set the file path. Use ES6 export
to export the class and use it in a separate file to demonstrate the file operations.
4. Create a simple [Link] server that serves static HTML files. The server should be able
to handle requests for different HTML files using routing and serve them accordingly.
5. Create a basic [Link] application with multiple routes that render different HTML
pages. Use the express module and serve static files such as CSS and images.