Javascript not working

It seems like everytime I try to use Javascript in my app, I get some sort of error message. Javascript isn't really my strong suit, so can anybody tell me what this means?

Hello @tomm ,

You miss the : (false part) in the conditional (ternary) operator


condition ? exprIfTrue : exprIfFalse

@rferland, thank you. Can you also tell me what I would use if I wanted to add if currentRow.ProdDays > 5?

if > 5 then Red, else if > 3 then yellow, else then white

{{ currentRow.ProdDays > 5 ? 'red' : currentRow.ProdDays > 3 ? 'yellow' : 'white' }}