JSFiddle - React, Tailwind, and code Playground

by Fu-Ching Hsiao

JavaScript

function temp(value){
	this.value = value;
};

temp.prototype.add = function(value){
  console.log("!#!@#@!#" +this.value);
  return value + 2;
};

var test = new temp(2);
var result = test.add(4);
console.log(result);