JSFiddle - React, Tailwind, and code Playground

by heera

JavaScript

var obj = {
    status:1,
    data: { }
}

if(obj.status)
{
    console.log("data");
}
else
{
    console.log("error");
}