JSFiddle - React, Tailwind, and code Playground

JavaScript

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

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