square node js

// Step 1: Create a new Node.js project
npm init -y

// Step 2: Install the 'square' package using npm
npm install square

// Step 3: Create a JavaScript file (e.g., app.js) and require the 'square' module
const square = require('square');

// Step 4: Define a function to calculate the square of a number
function calculateSquare(number) {
  return square(number);
}

// Step 5: Use the function to calculate the square of a specific number
const result = calculateSquare(5);

// Step 6: Print the result to the console
console.log(`Square of 5 is: ${result}`);