JSFiddle - React, Tailwind, and code Playground
by Anam Ansari
JavaScript
var helloworld=function(n)
{
this.radius=n;
}
helloworld.prototype.name3="anam";
helloworld.prototype.area=function()
{
return this.radius*2;
};
var h1=new helloworld(3);
console.log('Area is '+h1.area());
var h2=new helloworld(4);
console.log('Area is '+h2.area());
var h3=new helloworld(5);
console.log('Area is '+h3.area());