I'm biased[1], but for this reason we took the approach of creating a spreadsheet from scratch for the sole purpose of creating logic for apps (both internal tools & customer facing UX).
Would be curious to get the everyone's input on our spreadsheet-driven approach -- thoughts?
[1] I'm biased, because I'm the founder of: https://mintdata.com
[2] But this example shows what I mean by the "a spreadsheet is better to define logic than JS" approach: