In js, why does the ternary operator only show "new rent" instead of "new group wealth building" when the ternary operator is established?

$("-sharpcontract_remark").text(
        data.data.type==0
            ? ""
                : ""+""+data.data.rentRooms.name
                    +""+data.data.area+"");
Mar.01,2021

data.data.type==0? "new group": "renew rent"
wrap this up
change it to (data.data.type==0? "new group": "renew") + bar


$("-sharpcontract_remark").text(
        (data.data.type==0
             ? ""
                 : "")+""+data.data.rentRooms.name
                     +""+data.data.area+"");
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44a53-4ce6c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44a53-4ce6c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?