Header Ads Widget

BCA Information

Slip13

 Slip no-13Q1.create node js application using user defined  Rectangle module  to find area() of rectangle and  display details on console.


Slip13.js

const rect = require('./rectangle.js'); console.log(`The area of a rectangle is ${rect.area(4,5)}`);

rectangle.js


 exports.area = (l,w) => l * w ; 

Post a Comment

0 Comments

Popular Posts

Visual Basic 6.0 Program
Node js practical