This project demonstrates the use of Node.js and ES modules to create and import custom functions. The assignment consists of two JavaScript files:
app.js – The entry point that imports and invokes functions.
utilities.js – A module that defines at least four functions.
JavaScriptFrameworksAssignment2/
-README.md
Lab2-JS-frameworks/
-app.js # Entry point to invoke functions
-utilities.js # Contains function definitions
-package.json # Project metadata
-README.md # Project description
-welcomeUser(firstName, lastName) – Prints a welcome message.
-celsiusToFahrenheit(celsius) – Converts Celsius to Fahrenheit.
-factorial(n) – Computes the factorial of a given number.
-getRandomNumber(min, max) – Generates a random number within a given range.
-Ensure Node.js is installed.
-Open the terminal and navigate to the project folder.
-Run the following command: node app.js