JSFiddle - React, Tailwind, and code Playground

JavaScript

var weblayout = {
  data : { 
    rows : function() {
        return 1;
    } 
  }     
};

alert(weblayout.data.rows());// call the function row()