JSFiddle - React, Tailwind, and code Playground

JavaScript

function proto(){
    this.hello=function(){
        console.log('call hello');
    }
}

var house = ' var hl = 100; this.create = function(){ return hl; }';
            
            function require(string){
               var result=null;
               result=new Function(string);
               
               if(result) {
                  try {  
                     /** @var proto - ОБЩИЙ ПРОТОТИП ДЛЯ ВСЕХ ОБЪЕКТОВ*/;
                   
                      result.prototype=new proto();
                      result=new result();
                  } catch( e) {
                      console.log('Oops!', e);
                      result=false;
                  }
               }
               return result;
            }
            
            var bi = require(house)
            
            console.log(bi)