We can explain the javascript method and object value with the value is div tag in html. In coding basic level is html. there have various tag.
<div *dxTemplate="let cell of 'valueTemplate'">
<div [ngstyle]="{color:(fmtValue(cell.value).startsWith('(')) ? 'green' : 'blue'}">
{{fmtValue(cell.value)}}
</div>
</div>