0% found this document useful (0 votes)
4 views1 page

Node.js and Express.js Assignment Guide

The document outlines 5 assignments for an emerging technology lab involving Node.js and Express.js. The assignments include creating modules for arithmetic functions and file operations, building a simple Node.js static file server, and creating an Express.js app with multiple routes.

Uploaded by

nsswain21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Node.js and Express.js Assignment Guide

The document outlines 5 assignments for an emerging technology lab involving Node.js and Express.js. The assignments include creating modules for arithmetic functions and file operations, building a simple Node.js static file server, and creating an Express.js app with multiple routes.

Uploaded by

nsswain21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like