JSFiddle - React, Tailwind, and code Playground

by Sudheer Nunna

JavaScript

///////////Fine js file  stuff.js////
var arrayLength=function(arr){
return "array length"+arr.length+"length";
};

var sum=function(a,b){
return "sum of number ${a+b}";
};

module.exports.arrayLength=arrayLength;
module.exports.sum=sum;


///////////onther file////

var stuf=require('./stuff');
console.log(stuf.arrayLength([1,2,2,3]));
console.log(stuf.sum(2,3));