The document outlines an assignment for an Advanced Web Technologies course. It lists 9 questions covering topics like creating Node.js applications, using Node modules, reading and writing files, handling errors and events. Students are asked to write code to demonstrate their understanding of these Node.js concepts.
The document outlines an assignment for an Advanced Web Technologies course. It lists 9 questions covering topics like creating Node.js applications, using Node modules, reading and writing files, handling errors and events. Students are asked to write code to demonstrate their understanding of these Node.js concepts.
CO1 1. Write a simple Hello World console and web-based application (10 marks) using Node.js. 2. Write the steps on how to Run Node Application. 3. Write a program in NodeJS to to return an array of lines from a file in node.js? 4. Create a Calculator Node.js Module with functions add, subtract and multiply. And use the Calculator module in another Node.js file. 5. Write a NodeJS program to read, write and delete a file.
CO2 6. Write a NodeJS program to read directory synchronously. (10
marks) 7. Write a function in Node.js that reads a CSV file named "data.csv" and converts its contents to JSON format. 8. Write a program in NodeJS to handle synchronous and asynchronous errors. 9. Write a program in NodeJS for event handling using the setTimeout and setInterval functions.