JSFiddle - React, Tailwind, and code Playground
by Anchit Gupta
JavaScript
function Foo() {
var b = "b";
this.name="Anchit";
this.get = function () {
return b;
}
}
var n = new Foo();
console.log(n.name);
//console.log(n());
by Anchit Gupta
function Foo() {
var b = "b";
this.name="Anchit";
this.get = function () {
return b;
}
}
var n = new Foo();
console.log(n.name);
//console.log(n());